public function isDiscarded()
    {
        $deleteAfter = strtotime(self::config()->get('delete_after'), strtotime($this->Created));
        return ($this->Status === 'CART') && (time() > $deleteAfter);
    }
public function isDiscarded()
    {
        $deleteAfter = strtotime(self::config()->get('delete_after'), strtotime($this->Created));
        return ($this->Status === 'CART') && (time() > $deleteAfter);
    }
public function isDiscarded ( ) { $ deleteAfter = strtotime ( self :: config ( ) -> get ( 'delete_after' ) , strtotime ( $ this -> Created ) ) ; return ( $ this -> Status === 'CART' ) && ( time ( ) > $ deleteAfter ) ; }
Check if the cart is still in cart state and the delete_after time period has been exceeded

@return bool
Check if the cart is still in cart state and the delete_after time period has been exceeded