My\Model\User::aggregateId PHP Method

aggregateId() protected method

Every AR needs a hidden method that returns the identifier of the AR as a string
protected aggregateId ( ) : string
return string representation of the unique identifier of the aggregate root
        protected function aggregateId()
        {
            return $this->uuid->toString();
        }