public function getStatusAttribute()
    {
        if ($this->isActive()) {
            return self::STATUS_ACTIVE;
        }

        if ($this->isCanceled()) {
            return self::STATUS_CANCELED;
        }

        if ($this->isEnded()) {
            return self::STATUS_ENDED;
        }
    }
public function getStatusAttribute()
    {
        if ($this->isActive()) {
            return self::STATUS_ACTIVE;
        }

        if ($this->isCanceled()) {
            return self::STATUS_CANCELED;
        }

        if ($this->isEnded()) {
            return self::STATUS_ENDED;
        }
    }
public function getStatusAttribute ( ) { if ( $ this -> isActive ( ) ) { return self :: STATUS_ACTIVE ; } if ( $ this -> isCanceled ( ) ) { return self :: STATUS_CANCELED ; } if ( $ this -> isEnded ( ) ) { return self :: STATUS_ENDED ; } }
Get status attribute.

@return string
Get status attribute .