%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /www/loslex/demo/vendor/livewire/livewire/src/Mechanisms/HandleComponents/Synthesizers/
Upload File :
Create Path :
Current File : /www/loslex/demo/vendor/livewire/livewire/src/Mechanisms/HandleComponents/Synthesizers/IntSynth.php

<?php

namespace Livewire\Mechanisms\HandleComponents\Synthesizers;

// This synth exists solely to capture empty strings being set to integer properties...
class IntSynth extends Synth {
    public static $key = 'int';

    static function match($target) {
        return false;
    }

    static function matchByType($type) {
        return $type === 'int';
    }

    static function hydrateFromType($type, $value) {
        if ($value === '' || $value === null) return null;

        return (int) $value;
    }
}

Zerion Mini Shell 1.0