%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /www/varak.net/nextcloud.varak.net/apps_old/apps/bookmarks/vendor/rowbot/idna/src/
Upload File :
Create Path :
Current File : //www/varak.net/nextcloud.varak.net/apps_old/apps/bookmarks/vendor/rowbot/idna/src/IdnaResult.php

<?php

declare(strict_types=1);

namespace Rowbot\Idna;

class IdnaResult
{
    /**
     * @var string
     */
    protected $domain;

    /**
     * @var int
     */
    protected $errors;

    /**
     * @var bool
     */
    protected $transitionalDifferent;

    public function __construct(string $domain, DomainInfo $info)
    {
        $this->domain = $domain;
        $this->errors = $info->getErrors();
        $this->transitionalDifferent = $info->isTransitionalDifferent();
    }

    public function getDomain(): string
    {
        return $this->domain;
    }

    public function getErrors(): int
    {
        return $this->errors;
    }

    public function hasError(int $error): bool
    {
        return ($this->errors & $error) !== 0;
    }

    public function hasErrors(): bool
    {
        return $this->errors !== 0;
    }

    public function isTransitionalDifferent(): bool
    {
        return $this->transitionalDifferent;
    }
}

Zerion Mini Shell 1.0