id = $id; $this->title = $title; $this->color = $color; $this->status = $status; $this->description = $description; $this->type = $type; $this->sortOrder = $sortOrder; } public function getId() { return $this->id; } public function getTitle() { return $this->title; } public function getDescription() { $ret = ( null === $this->description ) ? '' : $this->description; return $ret; } public function getColor() { return $this->color; } public function getType() { return $this->type; } public function isShift() { return ( $this->type == self::TYPE_SHIFT ); } public function isAvailability() { return ( $this->type == self::TYPE_AVAILABILITY ); } public function isTimeoff() { return ( $this->type == self::TYPE_TIMEOFF ); } public function isActive() { return ( $this->status == self::STATUS_ACTIVE ); } public function isArchived() { return ( $this->status == self::STATUS_ARCHIVE ); } public function getSortOrder() { return $this->sortOrder; } }