PHP Class PartKeepr\ProjectBundle\Entity\Project

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

Public Methods

Method Description
__construct ( )
addAttachment ( ProjectAttachment $projectAttachment ) Adds a Project Attachment.
addPart ( ProjectPart $projectPart ) Adds a Project Part.
getAttachments ( ) : ProjectAttachment[] Returns the attachments for this project.
getDescription ( ) : string Returns the description of this project.
getName ( ) : string Returns the name of this project.
getParts ( ) : ProjectPart[] Returns the project parts array.
getUser ( ) : User Gets the user for this project.
removeAttachment ( ProjectAttachment $projectAttachment ) Removes a Project Attachment.
removePart ( ProjectPart $projectPart ) Removes a Project Part.
setDescription ( string $description ) Sets the description of this project.
setName ( string $name ) Sets the name for this project.
setUser ( User $user ) Sets the user for this project.

Method Details

__construct() public method

public __construct ( )

addAttachment() public method

Adds a Project Attachment.
public addAttachment ( ProjectAttachment $projectAttachment )
$projectAttachment ProjectAttachment An attachment to add

addPart() public method

Adds a Project Part.
public addPart ( ProjectPart $projectPart )
$projectPart ProjectPart A part to add

getAttachments() public method

Returns the attachments for this project.
public getAttachments ( ) : ProjectAttachment[]
return ProjectAttachment[] The attachments

getDescription() public method

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

getName() public method

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

getParts() public method

Returns the project parts array.
public getParts ( ) : ProjectPart[]
return ProjectPart[] An array of ProjectPart objects

getUser() public method

Gets the user for this project.
public getUser ( ) : User
return PartKeepr\AuthBundle\Entity\User

removeAttachment() public method

Removes a Project Attachment.
public removeAttachment ( ProjectAttachment $projectAttachment )
$projectAttachment ProjectAttachment An attachment to remove

removePart() public method

Removes a Project Part.
public removePart ( ProjectPart $projectPart )
$projectPart ProjectPart A part to remove

setDescription() public method

Sets the description of this project.
public setDescription ( string $description )
$description string The description to set

setName() public method

Sets the name for this project.
public setName ( string $name )
$name string

setUser() public method

Sets the user for this project.
public setUser ( User $user )
$user PartKeepr\AuthBundle\Entity\User