getId() public method

public getId ( )
Beispiel #1
0
 public function __construct(User $user, $comment)
 {
     $this->setParent($user->getId());
     $this->comment = $comment;
 }
Beispiel #2
0
 public function addFriend(User $user)
 {
     if (!in_array($user->getId(), $this->friends)) {
         $this->friends[] = $user->getId();
     }
 }