public function isCancelled() { return $this->getAttribute('state') === $this::STATE_CANCELLED ? true : false; }