for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* This software package is licensed under `AGPL, Commercial` license[s].
*
* @package maslosoft/zamm
* @license AGPL, Commercial
* @copyright Copyright (c) Peter Maselkowski <[email protected]>
*/
namespace Maslosoft\Zamm;
use Maslosoft\Zamm\Helpers\InlineWrapper;
* This simply return names of methods and properties, without class name or short class name.
* This is helper for IDE's.
* Use this together with @var type hint.
* @author Piotr Maselkowski <pmaselkowski at gmail.com>
class ShortNamer extends Namer
{
use Traits\SourceMagic;
protected function _method($name)
return sprintf('%s()', $name);
}
public function _property($name)
return sprintf('$%s', $name);
protected function _type()
return $this->info->getShortName();