Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x

Warning.php

Same filename in this branch
  1. 11.1.x vendor/phpunit/phpunit/src/Framework/TestStatus/Warning.php

Namespace

Egulias\EmailValidator\Warning

File

vendor/egulias/email-validator/src/Warning/Warning.php

View source
<?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;
    }
    
    /**
     * @return int
     */
    public function RFCNumber() {
        return $this->rfcNumber;
    }
    
    /**
     * @return string
     */
    public function __toString() : string {
        return $this->message() . " rfc: " . $this->rfcNumber . "internal code: " . static::CODE;
    }

}

Classes

Title Deprecated Summary
Warning
RSS feed
Powered by Drupal