StaticSeoUrlRepository

Implements \StaticSeoUrlRepositoryInterface

Class StaticSeoUrlRepository

category

System

package

StaticSeoUrl

subpackage

Repositories

Methods

StaticSeoUrlRepository constructor.

__construct(\StaticSeoUrlRepositoryWriterInterface $writer, \StaticSeoUrlRepositoryReaderInterface $reader, \StaticSeoUrlRepositoryDeleterInterface $deleter, \StaticSeoUrlContentRepositoryInterface $staticSeoUrlContentRepository) 

Returns a StaticSeoUrlContentCollection with all existing StaticSeoUrlContent objects by the given staticSeoUrl ID.

_getStaticSeoUrlContentCollection(\IdType $staticSeoUrlId) : \StaticSeoUrlContentCollection

Arguments

$staticSeoUrlId

\IdType

ID of the staticSeoUrl to fetch the staticSeoUrlContent collection from.

Response

\StaticSeoUrlContentCollection

Deletes a StaticSeoUrl by the given staticSeoUrl ID.

deleteStaticSeoUrlById(\IdType $staticSeoUrlId) : \StaticSeoUrlRepositoryInterface
Throws
\InvalidArgumentException

If no staticSeoUrl was found by the given ID.

Arguments

$staticSeoUrlId

\IdType

ID of the staticSeoUrl to delete.

Response

\StaticSeoUrlRepositoryInterface

Same instance for method chaining.

Returns a StaticSeoUrlCollection with all existing StaticSeoUrl objects.

getAll() : \StaticSeoUrlCollection

Returns a StaticSeoUrl instance by the given staticSeoUrl ID.

getById(\IdType $staticSeoUrlId) : \StaticSeoUrlInterface

Arguments

$staticSeoUrlId

\IdType

ID of the staticSeoUrl to get.

Response

\StaticSeoUrlInterface

Stores a StaticSeoUrl to the database.

store(\StaticSeoUrlInterface $staticSeoUrl) : \StaticSeoUrlRepositoryInterface
Throws
\InvalidArgumentException

If no staticSeoUrl was found by the given ID.

Arguments

$staticSeoUrl

\StaticSeoUrlInterface

StaticSeoUrl to store.

Response

\StaticSeoUrlRepositoryInterface

Same instance for method chaining.

Properties

writer

writer : \StaticSeoUrlRepositoryWriterInterface

reader

reader : \StaticSeoUrlRepositoryReaderInterface

deleter

deleter : \StaticSeoUrlRepositoryDeleterInterface

staticSeoUrlContentRepository

staticSeoUrlContentRepository : \StaticSeoUrlContentRepositoryInterface