ceus = (float) $ceus; return $this; } /** * @return mixed */ public function getCeus() { return $this->ceus; } /** * @param mixed $type * @return $this */ public function setType($type) { $this->type = $type; return $this; } /** * @return mixed */ public function getType() { return $this->type; } public function hasCeus() { return $this->getTypeRule()->featureCeu && $this->getCeus() > 0; } protected function getTypeRule() { static $rule; if (null === $rule) { $rule = new TypeRule($this->getType()); } return $rule; } public function setState($state) { $this->state = $state; return $this; } public function getState() { return $this->state; } public function isReadOnly() { return in_array($this->getState(), [self::STATE_FINISHED, self::STATE_CLOSED]); } }