for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Dash
*
* @link http://github.com/DASPRiD/Dash For the canonical source repository
* @copyright 2013-2015 Ben Scholzen 'DASPRiD'
* @license http://opensource.org/licenses/BSD-2-Clause Simplified BSD License
*/
namespace Dash\Parser;
* A generic parse result which is returned by parsers.
class ParseResult
{
* @var array
protected $params;
* @var int
protected $matchLength;
* @param array $params
* @param int $matchLength
public function __construct(array $params, $matchLength)
$this->params = $params;
$this->matchLength = (int) $matchLength;
}
* @return array
public function getParams()
return $this->params;
* @return int
public function getMatchLength()
return $this->matchLength;