PHP Classes

File: src/OrderType.php

Recommend this page to a friend!
  Classes of Unay Santisteban   PHP Criteria   src/OrderType.php   Download  
File: src/OrderType.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: PHP Criteria
Compose several filters using fluent interface
Author: By
Last change:
Date: 6 months ago
Size: 439 bytes
 

Contents

Class file image Download
<?php

declare(strict_types=1);

namespace
ComplexHeart\Domain\Criteria;

/**
 * Class OrderType
 *
 * @author Unay Santisteban <usantisteban@othercode.io>
 * @package ComplexHeart\Domain\Criteria
 */
enum OrderType: string
{
    case
ASC = 'ASC';
    case
DESC = 'DESC';
    case
NONE = 'NONE';
    case
RANDOM = 'RANDOM';

    public static function
make(string $value): self
   
{
        return
self::from(strtoupper($value));
    }
}