Kahlan\Jit\Parser::_initLines PHP Method

_initLines() protected method

Adds lines stores for root node.
protected _initLines ( string $content )
$content string A php file content.
    protected function _initLines($content)
    {
        if (!$this->_states['lines']) {
            return;
        }
        $lines = explode("\n", $content);
        $nbLines = count($lines);
        if ($this->_states['lines']) {
            for ($i = 0; $i < $nbLines; $i++) {
                $this->_root->lines['content'][$i] = ['body' => $lines[$i], 'nodes' => [], 'coverable' => false];
            }
        }
    }