PHP Class PartKeepr\PartBundle\Entity\PartAttachment

Inheritance: extends PartKeepr\UploadedFileBundle\Entity\UploadedFile
Show file Open project: partkeepr/PartKeepr Class Usage Examples

Public Methods

Method Description
__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.

Method Details

__construct() public method

Creates a new part attachment.
public __construct ( )

getPart() public method

Returns the part.
public getPart ( ) : Part
return Part the part

isImage() public method

Returns if the attachment is an image or not.
public isImage ( ) : true
return true if the attachment is an image, false otherwise

setImage() public method

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

setPart() public method

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