code example


        return true;
    }

    public function description(): string
    {
        return $this->reason->description() . " in char " . $this->token;
    }

    public function code(): int
    {
        return $this->reason->code();
    }

    public function reason(): Reason
    {
        return $this->reason;
    }
}
/** * @var Reason[] */
    private $reasons = [];

    public function __construct()
    {
    }

    public function addReason(Reason $reason) : void
    {
        $this->reasons[$reason->code()] = $reason;
    }

    /** * @return Reason[] */
    public function getReasons() : array
    {
        return $this->reasons;
    }

    public function reason() : Reason
    {
Home | Imprint | This part of the site doesn't use cookies.