PHP Класс Newscoop\Image\ArticleRenditionCollection

Set of image renditions for article returning default image if not overriden
Наследование: implements ArrayAccess
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$articleNumber integer
$defaultImage Newscoop\Image\ImageInterface
$renditions array

Открытые методы

Метод Описание
__construct ( integer $articleNumber, array $articleRenditions = [], Newscoop\Image\ImageInterface $defaultImage = null )
offsetExists ( Newscoop\Image\Rendition $rendition, boolean $strict = false ) : boolean Test if can provide image for rendition
offsetGet ( Newscoop\Image\Rendition $rendition ) : Newscoop\Image\ArticleImageRendition Get image for rendition
offsetSet ( $offset, $value )
offsetUnset ( $offset )

Приватные методы

Метод Описание
setArticleRenditions ( array $renditions ) : void Set article renditions

Описание методов

__construct() публичный метод

public __construct ( integer $articleNumber, array $articleRenditions = [], Newscoop\Image\ImageInterface $defaultImage = null )
$articleNumber integer
$articleRenditions array
$defaultImage Newscoop\Image\ImageInterface

offsetExists() публичный метод

Test if can provide image for rendition
public offsetExists ( Newscoop\Image\Rendition $rendition, boolean $strict = false ) : boolean
$rendition Newscoop\Image\Rendition
$strict boolean Check only key existing
Результат boolean

offsetGet() публичный метод

Get image for rendition
public offsetGet ( Newscoop\Image\Rendition $rendition ) : Newscoop\Image\ArticleImageRendition
$rendition Newscoop\Image\Rendition
Результат Newscoop\Image\ArticleImageRendition

offsetSet() публичный метод

public offsetSet ( $offset, $value )

offsetUnset() публичный метод

public offsetUnset ( $offset )

Описание свойств

$articleNumber защищенное свойство

protected int $articleNumber
Результат integer

$defaultImage защищенное свойство

protected Newscoop\Image\ImageInterface $defaultImage
Результат Newscoop\Image\ImageInterface

$renditions защищенное свойство

protected array $renditions
Результат array