Exemplo n.º 1
0
 /**
  * @return string
  */
 public function getBranchName()
 {
     return $this->branch->getName();
 }
 /**
  * @test
  */
 public function thatUpdateProperty()
 {
     $branch = new Branch('DUMM', 'DUMMY_NAME', 'DUMMY_DESC');
     $branch->updateProperty('name', self::BRANCH_NAME);
     $this->assertEquals(self::BRANCH_NAME, $branch->getName());
 }
 public static function fromBranch(Branch $branch)
 {
     $command = new self();
     $command->id = $branch->getId();
     $command->name = $branch->getName();
     $command->description = $branch->getDescription();
     $command->defaultAssignee = $branch->getDefaultAssignee();
     $command->tags = $branch->getTags();
     $command->logoFile = null;
     $command->logo = $branch->getLogo();
     return $command;
 }