public function __construct(Entity $entity, Position $from, Position $to) { $this->entity = $entity; $this->from = $from; $this->to = $to; }