/** * @return DateTime|null */ public function getRemoved() { if ($this->hasDependencies()) { return $this->entity->getRemoved(); } else { return null; } }
/** * copy the relevant properties of the entity passed into * the enveloped entity * * @param EntityInterface $template * * @return self */ public function copy(EntityInterface $template) { if ($this->hasDependencies()) { $entity = $this->entity; $entity->setIdentity($template->getIdentity())->setStatus($template->getStatus()); /* * if the subject has been removed but the copy is not removed */ if ($entity->getRemoved() != null && $template->getRemoved() == null) { $entity->clearRemoved(); } } return $this; }