for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Highlighter
*
* Copyright (C) 2016, Some right reserved.
* @author Kacper "Kadet" Donat <[email protected]>
* Contact with author:
* Xmpp: [email protected]
* E-mail: [email protected]
* From Kadet with love.
*/
namespace Kadet\Highlighter\Parser;
class Result extends \ArrayObject implements Tokens
{
private $_source;
public function __construct($source, $input = [])
$this->_source = $source;
parent::__construct($input, 0, \ArrayIterator::class);
}
public function getSource()
return $this->_source;
public function merge($tokens)
foreach ($tokens as $token) {
$this->append($token);
public function getTokens()
return $this->getArrayCopy();