PHP Class PartKeepr\ImageBundle\Entity\Image

Inheritance: extends PartKeepr\UploadedFileBundle\Entity\UploadedFile
显示文件 Open project: partkeepr/PartKeepr Class Usage Examples

Public Methods

Method Description
__construct ( string $type = null ) Constructs a new image object.

Protected Methods

Method Description
setType ( string $type ) Sets the type of the image. Once the type is set, it may not be changed later.

Method Details

__construct() public method

Constructs a new image object.
public __construct ( string $type = null )
$type string The type for the image, one of the IMAGE_ constants.

setType() protected method

Sets the type of the image. Once the type is set, it may not be changed later.
protected setType ( string $type )
$type string The type for the image, one of the IMAGE_ constants.