for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace TYPO3Fluid\Fluid\Core\Parser;
/*
* This file belongs to the package "TYPO3 Fluid".
* See LICENSE.txt that was shipped with this package.
*/
/**
* Source reflecting a piece of Fluid source code,
* usually coming from a template file.
class Source
{
public $source = '';
public $bytes = [];
public $length = 0;
public function __construct(string $source)
$this->source = $source;
$this->bytes = unpack('C*', $source);
$this->length = count($this->bytes);
}