PHP Class Sonata\Component\Generator\MysqlReference

Inheritance: implements Sonata\Component\Generator\ReferenceInterface
ファイルを表示 Open project: sonata-project/ecommerce

Protected Properties

Property Type Description
$registry Symfony\Bridge\Doctrine\RegistryInterface

Public Methods

Method Description
__construct ( Symfony\Bridge\Doctrine\RegistryInterface $registry )
invoice ( Sonata\Component\Invoice\InvoiceInterface $invoice )
order ( Sonata\Component\Order\OrderInterface $order )

Protected Methods

Method Description
generateReference ( mixed $object, string $tableName ) : Exception | string generate a correct reference number.

Method Details

__construct() public method

public __construct ( Symfony\Bridge\Doctrine\RegistryInterface $registry )
$registry Symfony\Bridge\Doctrine\RegistryInterface

generateReference() protected method

generate a correct reference number.
protected generateReference ( mixed $object, string $tableName ) : Exception | string
$object mixed
$tableName string
return Exception | string

invoice() public method

public invoice ( Sonata\Component\Invoice\InvoiceInterface $invoice )
$invoice Sonata\Component\Invoice\InvoiceInterface

order() public method

public order ( Sonata\Component\Order\OrderInterface $order )
$order Sonata\Component\Order\OrderInterface

Property Details

$registry protected_oe property

protected RegistryInterface,Symfony\Bridge\Doctrine $registry
return Symfony\Bridge\Doctrine\RegistryInterface