PHP Класс PartKeepr\PartBundle\Entity\PartAttachment

Наследование: extends PartKeepr\UploadedFileBundle\Entity\UploadedFile
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
__construct ( ) Creates a new part attachment.
getPart ( ) : Part Returns the part.
isImage ( ) : true Returns if the attachment is an image or not.
setImage ( $image ) Sets if the attachment is an image.
setPart ( Part $part = null ) Sets the part.

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

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

Creates a new part attachment.
public __construct ( )

getPart() публичный Метод

Returns the part.
public getPart ( ) : Part
Результат Part the part

isImage() публичный Метод

Returns if the attachment is an image or not.
public isImage ( ) : true
Результат true if the attachment is an image, false otherwise

setImage() публичный Метод

Sets if the attachment is an image.
public setImage ( $image )
$image

setPart() публичный Метод

Sets the part.
public setPart ( Part $part = null )
$part Part The part to set