%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/graphicd/public_html/vebto/vendor/spatie/enum/src/Exceptions/
Upload File :
Create Path :
Current File : /home/graphicd/public_html/vebto/vendor/spatie/enum/src/Exceptions/InvalidIndexException.php

<?php

namespace Spatie\Enum\Exceptions;

use InvalidArgumentException;

class InvalidIndexException extends InvalidArgumentException
{
    public function __construct($index, string $class)
    {
        $message = 'The index for an enum must be an int but '.gettype($index).' given';

        if (is_int($index)) {
            $message = 'The given index ['.$index.'] is not available in this enum '.$class;
        }

        parent::__construct($message);
    }
}

Zerion Mini Shell 1.0