* @git 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 ''; } }