src/Model/Aggregate/AggregateRoot.php
protected function modifyAttributesThrough(AggregateRootCommandInterface $command, array $changing_attributes)
    {
        $this->guardCommandPreConditions($command);
        $this->applyEvent($this->processCommand($command, [ 'data' => $changing_attributes ]));
    }
protected function modifyAttributesThrough(AggregateRootCommandInterface $command, array $changing_attributes)
    {
        $this->guardCommandPreConditions($command);
        $this->applyEvent($this->processCommand($command, [ 'data' => $changing_attributes ]));
    }
protected function modifyAttributesThrough ( AggregateRootCommandInterface $ command , array $ changing_attributes ) { $ this -> guardCommandPreConditions ( $ command ) ; $ this -> applyEvent ( $ this -> processCommand ( $ command , [ 'data' => $ changing_attributes ] ) ) ; }
Helper method, that makes it easier to apply a command in order to achieve a state transition,
that is "just" based on classical attribute changes.

@param AggregateRootCommandInterface $command
@param array $changing_attributes
Helper method that makes it easier to apply a command in order to achieve a state transition that is just based on classical attribute changes .