PHP Class PartKeepr\FootprintBundle\Entity\Footprint

Inheritance: extends PartKeepr\CoreBundle\Entity\BaseEntity
Show file Open project: partkeepr/PartKeepr Class Usage Examples

Public Methods

Method Description
__construct ( ) Constructs a new Footprint entity.
addAttachment ( FootprintAttachment | TempUploadedFile $attachment ) : void Adds an IC Logo.
getAttachments ( ) : ArrayCollection Returns the attachments for this footprint.
getCategory ( ) : FootprintCategory Returns the category of this footprint.
getCategoryPath ( ) : string Returns the category path.
getDescription ( ) : string Returns the description of this footprint.
getImage ( ) : FootprintImage Returns the footprint image.
getName ( ) : string Returns the name of this footprint.
removeAttachment ( FootprintAttachment $attachment ) : void Removes an IC Logo.
setCategory ( FootprintCategory $category ) : void Sets the category for this footprint.
setDescription ( string $description ) : void Sets the description of this footprint.
setImage ( FootprintImage $image ) : void Sets the footprint image.
setName ( string $name ) : void Sets the name of this footprint.

Method Details

__construct() public method

Constructs a new Footprint entity.
public __construct ( )

addAttachment() public method

Adds an IC Logo.
public addAttachment ( FootprintAttachment | TempUploadedFile $attachment ) : void
$attachment FootprintAttachment | TempUploadedFile Either a FootprintAttachment or a TempUploadedFile
return void

getAttachments() public method

Returns the attachments for this footprint.
public getAttachments ( ) : ArrayCollection
return Doctrine\Common\Collections\ArrayCollection The attachments

getCategory() public method

Returns the category of this footprint.
public getCategory ( ) : FootprintCategory
return FootprintCategory The footprint category

getCategoryPath() public method

Returns the category path.
public getCategoryPath ( ) : string
return string

getDescription() public method

Returns the description of this footprint.
public getDescription ( ) : string
return string The description

getImage() public method

Returns the footprint image.
public getImage ( ) : FootprintImage
return FootprintImage The footprint image

getName() public method

Returns the name of this footprint.
public getName ( ) : string
return string The name of this footprint

removeAttachment() public method

Removes an IC Logo.
public removeAttachment ( FootprintAttachment $attachment ) : void
$attachment FootprintAttachment
return void

setCategory() public method

Sets the category for this footprint.
public setCategory ( FootprintCategory $category ) : void
$category FootprintCategory The category
return void

setDescription() public method

Sets the description of this footprint.
public setDescription ( string $description ) : void
$description string The description
return void

setImage() public method

Sets the footprint image.
public setImage ( FootprintImage $image ) : void
$image FootprintImage The footprint image
return void

setName() public method

Sets the name of this footprint.
public setName ( string $name ) : void
$name string The footprint name
return void