Jade\Compiler\CodeHandler::__construct PHP Method

__construct() public method

public __construct ( $input, $name )
    public function __construct($input, $name)
    {
        if (!is_string($input)) {
            throw new \InvalidArgumentException('Expecting a string of PHP, got: ' . gettype($input), 11);
        }
        if (strlen($input) === 0) {
            throw new \InvalidArgumentException('Expecting a string of PHP, empty string received.', 12);
        }
        $this->input = trim(preg_replace('/\\bvar\\b/', '', $input));
        $this->name = $name;
        $this->separators = array();
    }