PHP Class Dumplie\Inventory\Infrastructure\Doctrine\DBAL\Query\DbalInventoryQuery

Inheritance: implements Dumplie\Inventory\Application\Query\InventoryQuery
Datei anzeigen Open project: dumplie/dumplie

Public Methods

Method Description
__construct ( Doctrine\DBAL\Connection $connection, MetadataAccessRegistry $accessRegistry )
count ( ) : integer
findAll ( integer $limit, integer $offset ) : array
getBySku ( string $sku ) : Product
skuExists ( string $sku ) : boolean

Method Details

__construct() public method

public __construct ( Doctrine\DBAL\Connection $connection, MetadataAccessRegistry $accessRegistry )
$connection Doctrine\DBAL\Connection
$accessRegistry Dumplie\Metadata\MetadataAccessRegistry

count() public method

public count ( ) : integer
return integer

findAll() public method

public findAll ( integer $limit, integer $offset ) : array
$limit integer
$offset integer
return array

getBySku() public method

public getBySku ( string $sku ) : Product
$sku string
return Dumplie\Inventory\Application\Query\Result\Product

skuExists() public method

public skuExists ( string $sku ) : boolean
$sku string
return boolean