izzum\statemachine\EntityBuilder::build PHP Метод

build() защищенный Метод

Override this method to return an application specific domain model. In an overriden function it is possible to use the state of the concrete builder itself, which can be passed in via dependency injection at construction time, so we have additional information on how to build the domain object.
protected build ( Identifier $identifier ) : Object
$identifier Identifier
Результат Object an object of any type defined by the subclass
    protected function build(Identifier $identifier)
    {
        // the default implementation returns an Identifier, which holds an id
        // that can be used in your rules and commands to build your domain
        // logic or build your domain object. specialized builders return a domain
        // model that will be accepted by your specialized rules/commands for
        // your application.
        return $identifier;
    }