public function sendLinkedData() { if ($this->linkedEntity instanceof Entity) { $this->setLinked($this->linkedType, $this->linkedEntity); } }