public function __construct(Entity $entity) { $this->entity = $entity; $this->definition = $entity->getDefinition(); }