src/models/Server.php
public function canFullRefuse()
    {
        if (!is_numeric($this->last_expires)) {
            return null; // In case server is not sold
        }

        return (time() - Yii::$app->formatter->asTimestamp($this->last_expires)) / 3600 / 24 < 5;
    }
public function canFullRefuse()
    {
        if (!is_numeric($this->last_expires)) {
            return null; // In case server is not sold
        }

        return (time() - Yii::$app->formatter->asTimestamp($this->last_expires)) / 3600 / 24 < 5;
    }
public function canFullRefuse ( ) { if ( ! is_numeric ( $ this -> last_expires ) ) { return null ; // In case server is not sold } return ( time ( ) - Yii :: $ app -> formatter -> asTimestamp ( $ this -> last_expires ) ) / 3600 / 24 < 5 ; }
During 5 days after the last expiration client is able to refuse server with full refund.
Method checks, whether 5 days passed.
@return bool
During 5 days after the last expiration client is able to refuse server with full refund . Method checks whether 5 days passed .