public function addUser(User $user)
    {
        if (!$this->users->contains($user)) {
            $this->users->add($user);
        }

        return $this;
    }
public function addUser(User $user)
    {
        if (!$this->users->contains($user)) {
            $this->users->add($user);
        }

        return $this;
    }
public function addUser ( User $ user ) { if ( ! $ this -> users -> contains ( $ user ) ) { $ this -> users -> add ( $ user ) ; } return $ this ; }
Adds an user to team.

@param User $user

@return Team
Adds an user to team .