public function labels() { $data = $this->api('projects')->labels($this->id); $labels = array(); foreach ($data as $label) { $labels[] = Label::fromArray($this->getClient(), $this, $label); } return $labels; }