phpDocumentor

OptionRepository extends AbstractEventDispatchingRepository implements OptionRepository

Class OptionRepository

Interfaces, Classes and Traits

OptionRepository
Interface OptionRepository

Table of Contents

$eventDispatcher  : EventDispatcherInterface
$mapper  : OptionMapper
$permitters  : array<string|int, OptionOperationPermitter>
$reader  : OptionReader
$writer  : OptionWriter
__construct()  : mixed
OptionRepository constructor.
createMultipleOptions()  : OptionIds
Creates and stores multiple new options.
createOption()  : OptionId
Creates and stores a new option.
deleteOptions()  : void
Deletes one or more existing options.
dispatchEntityEvents()  : void
dispatchEvent()  : void
filterOptions()  : Options
Returns a filtered, sorted, paginated collection of options.
getAllOptions()  : Options
Returns a collection of all options.
getOptionById()  : Option
Returns a specific option based on the given option ID.
getOptionsTotalCount()  : int
Returns the total count of filtered options.
registerOperationPermitter()  : void
Registers an operation permitter, which can determine if a create, storage, deletion operation is permitted.
storeOptions()  : void
Stores one or more existing options.
setEventDispatcher()  : void

Properties

Methods

createMultipleOptions()

Creates and stores multiple new options.

public createMultipleOptions(array<string|int, mixed> ...$creationArgs) : OptionIds
Parameters
$creationArgs : array<string|int, mixed>
Tags
inheritDoc
Return values
OptionIds

deleteOptions()

Deletes one or more existing options.

public deleteOptions(OptionId ...$ids) : void
Parameters
$ids : OptionId
Tags
inheritDoc
Return values
void

getOptionsTotalCount()

Returns the total count of filtered options.

public getOptionsTotalCount(Filters $filters) : int
Parameters
$filters : Filters
Tags
inheritDoc
Return values
int

storeOptions()

Stores one or more existing options.

public storeOptions(Option ...$options) : void
Parameters
$options : Option
Tags
inheritDoc
Return values
void

setEventDispatcher()

protected setEventDispatcher(EventDispatcherInterface $eventDispatcher) : void
Parameters
$eventDispatcher : EventDispatcherInterface
Return values
void

Search results