src/AlterPHP/Component/Behavior/StatusableEntity.php
public static function isGreaterThan($status1, $status2, $strict = true)
    {
        static::checkAllowedStatus($status1);
        static::checkAllowedStatus($status2);

        $entityStatusIdx = array_search($status1, static::getStatusList());
        $comparedStatusIdx = array_search($status2, static::getStatusList());

        if ($strict) {
            return $entityStatusIdx > $comparedStatusIdx;
        }

        return $entityStatusIdx >= $comparedStatusIdx;
    }
public static function isGreaterThan($status1, $status2, $strict = true)
    {
        static::checkAllowedStatus($status1);
        static::checkAllowedStatus($status2);

        $entityStatusIdx = array_search($status1, static::getStatusList());
        $comparedStatusIdx = array_search($status2, static::getStatusList());

        if ($strict) {
            return $entityStatusIdx > $comparedStatusIdx;
        }

        return $entityStatusIdx >= $comparedStatusIdx;
    }
public static function isGreaterThan ( $ status1 , $ status2 , $ strict = true ) { static :: checkAllowedStatus ( $ status1 ) ; static :: checkAllowedStatus ( $ status2 ) ; $ entityStatusIdx = array_search ( $ status1 , static :: getStatusList ( ) ) ; $ comparedStatusIdx = array_search ( $ status2 , static :: getStatusList ( ) ) ; if ( $ strict ) { return $ entityStatusIdx > $ comparedStatusIdx ; } return $ entityStatusIdx >= $ comparedStatusIdx ; }
Compare first status to second passed status.

@param string $status1
@param string $status2
@param bool   $strict

@return bool
Compare first status to second passed status .