Sstalle\php7cc\AbstractBaseMessage::__construct PHP Method

__construct() public method

public __construct ( string $text, integer | null $line = null )
$text string
$line integer | null
    public function __construct($text, $line = null)
    {
        $this->rawText = $text;
        $this->line = $line;
        $this->text = $this->generateText();
    }

Usage Example

Example #1
0
 /**
  * @param string   $text
  * @param int|null $line
  * @param Node[]   $nodes
  */
 public function __construct($text, $line = null, array $nodes = array())
 {
     parent::__construct($text, $line);
     $this->nodes = $nodes;
 }
All Usage Examples Of Sstalle\php7cc\AbstractBaseMessage::__construct