for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Leaditin\Code\Generator;
/**
* @package Leaditin\Code
* @author Igor Vuckovic <[email protected]>
* @license MIT
*/
class TraitGenerator extends ClassAwareGenerator
{
* @inheritDoc
protected function scope(): string
return 'trait';
}
protected function generateScope(): string
return $this->generateLine('trait ' . $this->name . $this->generateInheritance()) . $this->generateLine('{');