/** * @return DateTime|null */ public function getAdded() { if ($this->hasDependencies()) { return $this->entity->getAdded(); } else { return null; } }