for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php declare(strict_types=1);
namespace Janisbiz\LightOrm\Generator\Writer;
abstract class AbstractWriterConfig implements WriterConfigInterface
{
/**
* @var string
*/
protected $directory;
* @var null|string
protected $namespace = '';
protected $classPrefix = '';
protected $classSuffix = '';
* @return string
public function getDirectory(): string
return \rtrim($this->directory, DIRECTORY_SEPARATOR);
}
* @return null|string
public function getNamespace(): ?string
return \trim($this->namespace, '\\');
public function getClassPrefix(): ?string
return \mb_convert_case(\trim($this->classPrefix), MB_CASE_TITLE);
public function getClassSuffix(): ?string
return \mb_convert_case(\trim($this->classSuffix), MB_CASE_TITLE);