for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Egulias\EmailValidator\Warning;
abstract class Warning
{
/**
* @var int CODE
*/
public const CODE = 0;
* @var string
protected $message = '';
* @var int
protected $rfcNumber = 0;
* @return string
public function message()
return $this->message;
}
* @return int
public function code()
return self::CODE;
public function RFCNumber()
return $this->rfcNumber;
public function __toString(): string
return $this->message() . " rfc: " . $this->rfcNumber . "internal code: " . strval(static::CODE);