view vendor/egulias/email-validator/EmailValidator/Warning/Warning.php @ 19:fa3358dc1485 tip

Add ndrum files
author Chris Cannam
date Wed, 28 Aug 2019 13:14:47 +0100
parents af1871eacc83
children
line wrap: on
line source
<?php

namespace Egulias\EmailValidator\Warning;

abstract class Warning
{
    const CODE = 0;
    protected $message;
    protected $rfcNumber;

    public function message()
    {
        return $this->message;
    }

    public function code()
    {
        return self::CODE;
    }

    public function RFCNumber()
    {
        return $this->rfcNumber;
    }

    public function __toString()
    {
        return $this->message() . " rfc: " .  $this->rfcNumber . "interal code: " . static::CODE;
    }
}