src/Domain/AggregateRoot/EventSourcedAggregateRoot.php
protected function applyMethod(Serializable $payload)
    {
        $className = get_class($payload);

        return 'apply'.substr($className, strrpos($className, '\\') + 1);
    }
protected function applyMethod(Serializable $payload)
    {
        $className = get_class($payload);

        return 'apply'.substr($className, strrpos($className, '\\') + 1);
    }
protected function applyMethod ( Serializable $ payload ) { $ className = get_class ( $ payload ) ; return 'apply' . substr ( $ className , strrpos ( $ className , '\\' ) + 1 ) ; }
Returns method to call for applying a given domain event to the aggregate.
This can be overridden to suit your custom naming convention.

@param Serializable $payload

@return string
Returns method to call for applying a given domain event to the aggregate . This can be overridden to suit your custom naming convention .