/** * Is the given User the author of this Post? * * @param User $user * * @return bool */ public function isAuthor(User $user = null) { return $user->getEmail() == $this->getAuthorEmail(); }
/** * {@inheritDoc} */ public function getEmail() { $this->__initializer__ && $this->__initializer__->__invoke($this, 'getEmail', array()); return parent::getEmail(); }