Example #1
0
 /**
  * @param Team $team
  */
 public function setTeam(Team $team)
 {
     $this->team = $team;
     if (null === $this->team->getManager()) {
         $this->team->setManager($this);
     }
 }
Example #2
0
 public function testHasManager()
 {
     $this->assertFalse($this->team->hasManager());
     $this->team->setManager(new Manager());
     $this->assertTrue($this->team->hasManager());
 }