Documentation

Image

Tags
ORM\Entity
ORM\Table

(name="image")

Table of Contents

$created  : DateTime
$description  : string
$id  : int
$ordering  : int
$source  : array<string|int, array<string|int, string>>
$state  : bool
$title  : string
$updated  : DateTime
$gallery  : Gallery
__construct()  : mixed
getCreated()  : DateTime
Returns image created date
getDescription()  : string
Returns image description
getGallery()  : Gallery
Returns image gallery
getId()  : int
Returns image ID
getOrdering()  : int
Returns image ordering
getSource()  : array<string|int, array<string|int, string>>
Returns image source
getState()  : bool
Returns image state
getTitle()  : string
Returns image title
getUpdated()  : DateTime
Returns image updated date
setCreated()  : self
Sets image created date
setDescription()  : self
Sets image description
setGallery()  : self
Sets image gallery
setOrdering()  : self
Sets image ordering
setSource()  : self
Sets source to image
setState()  : self
Sets image state
setTitle()  : self
Sets image title
setUpdated()  : self
Sets image updated date

Properties

$created

protected DateTime $created
Tags
ORM\Column

(type="datetime", nullable=false)

$description

protected string $description
Tags
ORM\Column

(type="text", nullable=true)

$id

protected int $id
Tags
ORM\Id
ORM\Column

(type="integer")

ORM\GeneratedValue

$ordering

protected int $ordering
Tags
ORM\Column

(type="integer")

$source

protected array<string|int, array<string|int, string>> $source
Tags
ORM\Column

(type="json", length=512)

$state

protected bool $state
Tags
ORM\Column

(type="boolean")

$title

protected string $title
Tags
ORM\Column

(type="string", length=512)

$updated

protected DateTime $updated
Tags
ORM\Column

(type="datetime", nullable=false)

ORM\Version
private Gallery $gallery
Tags
ORM\ManyToOne

(targetEntity="Gallery", inversedBy="images")

ORM\JoinColumn

(name="gallery_id", referencedColumnName="id")

Methods

__construct()

public __construct(Gallery $gallery[, string $title = "" ][, string $description = "" ], array<string|int, array<string|int, string>> $source, int $ordering[, bool $state = true ]) : mixed
Parameters
$gallery : Gallery
$title : string = ""
$description : string = ""
$source : array<string|int, array<string|int, string>>
$ordering : int
$state : bool = true
Return values
mixed

getCreated()

Returns image created date

public getCreated() : DateTime
Return values
DateTime

getDescription()

Returns image description

public getDescription() : string
Return values
string

getId()

Returns image ID

public getId() : int
Return values
int

getOrdering()

Returns image ordering

public getOrdering() : int
Return values
int

getSource()

Returns image source

public getSource() : array<string|int, array<string|int, string>>
Return values
array<string|int, array<string|int, string>>

getState()

Returns image state

public getState() : bool
Return values
bool

getTitle()

Returns image title

public getTitle() : string
Return values
string

getUpdated()

Returns image updated date

public getUpdated() : DateTime
Return values
DateTime

setCreated()

Sets image created date

public setCreated(DateTime $created) : self
Parameters
$created : DateTime
Return values
self

setDescription()

Sets image description

public setDescription(string $description) : self
Parameters
$description : string
Return values
self

setGallery()

Sets image gallery

public setGallery(Gallery $gallery) : self
Parameters
$gallery : Gallery
Return values
self

setOrdering()

Sets image ordering

public setOrdering(int $ordering) : self
Parameters
$ordering : int
Return values
self

setSource()

Sets source to image

public setSource(array<string|int, array<string|int, string>> $source) : self
Parameters
$source : array<string|int, array<string|int, string>>
Return values
self

setState()

Sets image state

public setState(bool $state) : self
Parameters
$state : bool
Return values
self

setTitle()

Sets image title

public setTitle(string $title) : self
Parameters
$title : string
Return values
self

setUpdated()

Sets image updated date

public setUpdated() : self
Return values
self

Search results