id; } /** * Set costobject. * * @param int $costobject CostObject id * * @return void * * @since 1.0.0 */ public function setCostObject(int $costobject) : void { $this->costobject = $costobject; } /** * Get costobject * * @return int * * @since 1.0.0 */ public function getCostObject() : int { return $this->costobject; } /** * Get language * * @return string * * @since 1.0.0 */ public function getLanguage() : string { return $this->language; } /** * Set language * * @param string $language Language * * @return void * * @since 1.0.0 */ public function setLanguage(string $language) : void { $this->language = $language; } /** * Get costobject name. * * @return string * * @since 1.0.0 */ public function getName() : string { return $this->name; } /** * Set name * * @param string $name Name * * @return void * * @since 1.0.0 */ public function setName(string $name) : void { $this->name = $name; } /** * Get costobject description. * * @return string * * @since 1.0.0 */ public function getDescription() : string { return $this->description; } /** * Set description * * @param string $description Description * * @return void * * @since 1.0.0 */ public function setDescription(string $description) : void { $this->description = $description; } /** * {@inheritdoc} */ public function toArray() : array { return [ 'id' => $this->id, 'name' => $this->name, 'costobject' => $this->costobject, 'language' => $this->language, ]; } /** * {@inheritdoc} */ public function jsonSerialize() { return $this->toArray(); } }