src/Domain/AggregateRoot/EventSourcedAggregateRoot.php
final private function apply(Serializable $payload)
    {
        $method = $this->applyMethod($payload);
        $this->$method($payload);
    }
final private function apply(Serializable $payload)
    {
        $method = $this->applyMethod($payload);
        $this->$method($payload);
    }
final private function apply ( Serializable $ payload ) { $ method = $ this -> applyMethod ( $ payload ) ; $ this -> $ method ( $ payload ) ; }
Mutate the state of the aggregate by applying a domain event.

@param Serializable $payload
Mutate the state of the aggregate by applying a domain event .