for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Copyright (c) 2013-2016
*
* @category Library
* @package Dwoo
* @author Jordi Boggiano <[email protected]>
* @author David Sanchez <[email protected]>
* @copyright 2008-2013 Jordi Boggiano
* @copyright 2013-2016 David Sanchez
* @license http://dwoo.org/LICENSE Modified BSD License
* @version 1.3.0
* @date 2016-09-23
* @link http://dwoo.org/
*/
namespace Dwoo;
* Base class for processors.
* This software is provided 'as-is', without any express or implied warranty.
* In no event will the authors be held liable for any damages arising from the use of this software.
abstract class Processor
{
* The compiler instance that runs this processor.
* @var Core
protected $compiler;
* Constructor, if you override it, call parent::__construct($compiler); or assign
* the dwoo instance yourself if you need it.
* @param Compiler $compiler the compiler class
public function __construct(Compiler $compiler)
$this->compiler = $compiler;
$compiler
object<Dwoo\Compiler>
object<Dwoo\Core>
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..
}
* Processes the input and returns it filtered.
* @param string $input the template to process
* @return string
abstract public function process($input);
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..