protected function createStoreCommand(Aggregate $aggregate): self
    {
        // We gotta retrieve the corresponding query adapter to use.
        $mapper = $aggregate->getMapper();

        return new self($aggregate, $mapper->newQueryBuilder());
    }
protected function createStoreCommand(Aggregate $aggregate): self
    {
        // We gotta retrieve the corresponding query adapter to use.
        $mapper = $aggregate->getMapper();

        return new self($aggregate, $mapper->newQueryBuilder());
    }
protected function createStoreCommand ( Aggregate $ aggregate ) : self { // We gotta retrieve the corresponding query adapter to use. $ mapper = $ aggregate -> getMapper ( ) ; return new self ( $ aggregate , $ mapper -> newQueryBuilder ( ) ) ; }
Create a new store command.

@param Aggregate $aggregate

@return Store
Create a new store command .