Airship\Cabin\Bridge\Filter\SkyportFilter::__construct PHP Метод

__construct() публичный Метод

RecoveryFilter constructor.
public __construct ( )
    public function __construct()
    {
        $this->addFilter('type', (new StringFilter())->addCallback(function ($input) : string {
            switch ($input) {
                case 'Cabin':
                case 'Gadget':
                case 'Motif':
                    return $input;
                default:
                    throw new \TypeError();
            }
        }))->addFilter('package', (new StringFilter())->addCallback([StringFilter::class, 'nonEmpty']))->addFilter('supplier', (new StringFilter())->addCallback([StringFilter::class, 'nonEmpty']))->addFilter('version', new StringFilter());
    }
SkyportFilter