PHP Class Sonata\Component\Generator\MysqlReference

Inheritance: implements Sonata\Component\Generator\ReferenceInterface
Afficher le fichier Open project: sonata-project/ecommerce

Protected Properties

Свойство Type Description
$registry Symfony\Bridge\Doctrine\RegistryInterface

Méthodes publiques

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

Méthodes protégées

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

Method Details

__construct() public méthode

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

generateReference() protected méthode

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

invoice() public méthode

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

order() public méthode

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

Property Details

$registry protected_oe property

protected RegistryInterface,Symfony\Bridge\Doctrine $registry
Résultat Symfony\Bridge\Doctrine\RegistryInterface