public function setRelatedEntity(TestEntityInterface $relatedEntity) { $this->relatedEntity = $relatedEntity; }