setNumber($number); $this->setType($type); } /** * @return int */ public function getNumber() { return $this->number; } /** * @param int $number */ public function setNumber($number) { $this->number = $number; } /** * @return string */ public function getType() { return $this->type; } /** * @param string|object $type */ public function setType($type) { if (\is_object($type)) { $type = \get_class($type); } $this->type = $type; } }