for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Bdf\Prime\Schema\Inflector;
use Doctrine\Inflector\Inflector as InflectorObject;
use Doctrine\Inflector\InflectorFactory;
/**
* SimpleInfector
*/
class SimpleInfector implements InflectorInterface
{
* The inflector instance
*
* @var InflectorObject
private $inflector;
public function __construct(?InflectorObject $inflector = null)
$this->inflector = $inflector ?? InflectorFactory::create()->build();
}
$table
* {@inheritdoc}
public function getClassName($table)
return $this->inflector->classify($this->inflector->singularize(strtolower($table)));
$field
public function getPropertyName($table, $field)
return $this->inflector->camelize(strtolower($field));
public function getSequenceName($table)
return "${table}_seq";