for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Trello\Model;
class Label extends AbstractObject implements LabelInterface
{
protected $apiName = 'label';
protected $loadParams = array(
'fields' => 'all',
'board' => true,
);
/**
* {@inheritdoc}
*/
public function getId()
return $this->data['id'];
}
public function setName($name)
$this->data['name'] = $name;
return $this;
public function getName()
return $this->data['name'];
public function setColor($color)
$this->data['color'] = $color;
public function getColor()
return $this->data['color'];
public function setBoardId($boardId)
$this->data['idBoard'] = $boardId;
public function getBoardId()
return $this->data['idBoard'];
public function setBoard(BoardInterface $board)
return $this->setBoardId($board->getId());
public function getBoard()
return new Board($this->client, $this->getBoardId());