getId() public method

public getId ( )
コード例 #1
0
ファイル: Comment.php プロジェクト: revinate/search-bundle
 public function __construct(User $user, $comment)
 {
     $this->setParent($user->getId());
     $this->comment = $comment;
 }
コード例 #2
0
ファイル: User.php プロジェクト: revinate/search-bundle
 public function addFriend(User $user)
 {
     if (!in_array($user->getId(), $this->friends)) {
         $this->friends[] = $user->getId();
     }
 }