CRUDlex\Entity::__construct PHP Méthode

__construct() public méthode

Constructor.
public __construct ( EntityDefinition $definition )
$definition EntityDefinition the definition how this entity looks
    public function __construct(EntityDefinition $definition)
    {
        $this->definition = $definition;
        $this->entity = [];
    }