Documentation

ProfilePhoto
in package
implements ResourceInterface uses IdentifiableTrait

ProfilePhoto.

Tags
psalm-import-type

PhotoGdprArrayType from Photo as ImportedPhotoGdprArrayType

psalm-type

ProfilePhotoGdprArrayType = array{ dateTime: string, explicit: bool, photo: ImportedPhotoGdprArrayType, }

Attributes
#[Entity]

Table of Contents

Interfaces

ResourceInterface

Properties

$dateTime  : DateTime
Date and time when the photo was taken.
$explicit  : bool
Date and time when the photo was taken.
$id  : int|null
The default value must be `null` to prevent issues with auto generating the value. The column is strictly not nullable.
$member  : Member
$photo  : Photo

Methods

getDateTime()  : DateTime
Get the date.
getId()  : int|null
Get the identifier of the object.
getMember()  : Member
getPhoto()  : Photo
getResourceId()  : string
Get the resource Id.
isExplicit()  : bool
Get the explicit bool.
setDateTime()  : void
setExplicit()  : void
setId()  : void
Setting the identifier manually will, in most instances, result in undefined behaviour. Use with caution!
setMember()  : void
setPhoto()  : void
toGdprArray()  : ProfilePhotoGdprArrayType

Properties

$dateTime

Date and time when the photo was taken.

protected DateTime $dateTime
Attributes
#[Column]
$type: 'datetime'

$explicit

Date and time when the photo was taken.

protected bool $explicit
Attributes
#[Column]
$type: 'boolean'

$id

The default value must be `null` to prevent issues with auto generating the value. The column is strictly not nullable.

protected int|null $id = null
Attributes
#[Column]
$type: 'integer'
#[GeneratedValue]
$strategy: 'IDENTITY'
#[Id]

$member

protected Member $member
Attributes
#[JoinColumn]
$name: 'member_id'
$referencedColumnName: 'lidnr'
$nullable: false
#[OneToOne]
$targetEntity: \Decision\Model\Member::class

$photo

protected Photo $photo
Attributes
#[JoinColumn]
$name: 'photo_id'
$referencedColumnName: 'id'
$nullable: false
#[ManyToOne]
$targetEntity: \Photo\Model\Photo::class
$inversedBy: 'profilePhotos'

Methods

getDateTime()

Get the date.

public getDateTime() : DateTime
Return values
DateTime

getId()

Get the identifier of the object.

public getId() : int|null
Tags
psalm-ignore-nullable-return
Return values
int|null

getResourceId()

Get the resource Id.

public getResourceId() : string
Return values
string

isExplicit()

Get the explicit bool.

public isExplicit() : bool
Return values
bool

setDateTime()

public setDateTime(DateTime $dateTime) : void
Parameters
$dateTime : DateTime

setExplicit()

public setExplicit(bool $explicit) : void
Parameters
$explicit : bool

setId()

Setting the identifier manually will, in most instances, result in undefined behaviour. Use with caution!

public setId(int|null $id) : void
Parameters
$id : int|null

toGdprArray()

public toGdprArray() : ProfilePhotoGdprArrayType
Return values
ProfilePhotoGdprArrayType

        
On this page

Search results