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