AppserverIo\Appserver\ServletEngine\Utils\ErrorUtil::fromArray PHP Метод

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

Create's a new error instance with the values from the passed array.
public fromArray ( array $error ) : AppserverIo\Appserver\ServletEngine\Utils\ErrorInterface
$error array The array containing the error information
Результат AppserverIo\Appserver\ServletEngine\Utils\ErrorInterface The error instance
    public function fromArray(array $error)
    {
        // initialize the variables
        $type = 0;
        $message = '';
        $file = '';
        $line = 0;
        // extract the array with the error information
        extract($error);
        // initialize and return the error instance
        return new Error($type, $message, $file, $line);
    }