Esempio n. 1
0
 /**
  * Is the given User the author of this product
  *
  * @return bool
  */
 public function isAuthor(User $user)
 {
     if ($user->getId() === $this->getUser()->getId()) {
         return true;
     }
     return false;
 }