Component-Builder/libraries/jcb_powers/VDM.Joomla/src/Componentbuilder/Line.php

44 lines
876 B
PHP

<?php
/**
* @package Joomla.Component.Builder
*
* @created 30th April, 2015
* @author Llewellyn van der Merwe <https://dev.vdm.io>
* @git Joomla Component Builder <https://git.vdm.dev/joomla/Component-Builder>
* @copyright Copyright (C) 2015 Vast Development Method. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
namespace VDM\Joomla\Componentbuilder;
use VDM\Joomla\Componentbuilder\Factory\Compiler\Config;
/**
* Add line comment
*
* @since 3.1.5
*/
trait Line
{
/**
* Set the line number in comments
*
* @param int $nr The line number
*
* @return string
* @since 3.1.5
*/
private function setLine(int $nr): string
{
if (Config::get('debug_line_nr', false))
{
return ' [' . get_called_class() . ' ' . $nr . ']';
}
return '';
}
}