for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Webfactor\Laravel\Generators\Contracts;
use Illuminate\Console\DetectsApplicationNamespace;
abstract class NamingAbstract
{
use DetectsApplicationNamespace;
protected $entity;
/**
* NamingAbstract constructor.
* @param string $entity
*/
public function __construct(string $entity)
$this->entity = $entity;
}
* @return string
public function getFile(): string
return $this->getPath() . '/' . $this->getFileName();
abstract public function getPath(): string;
abstract public function getFileName(): string;