PHP Класс PartKeepr\ProjectBundle\Entity\Project

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

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

Метод Описание
__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.

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

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

public __construct ( )

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

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

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

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

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

Returns the attachments for this project.
public getAttachments ( ) : ProjectAttachment[]
Результат ProjectAttachment[] The attachments

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

Returns the description of this project.
public getDescription ( ) : string
Результат string The description

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

Returns the name of this project.
public getName ( ) : string
Результат string

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

Returns the project parts array.
public getParts ( ) : ProjectPart[]
Результат ProjectPart[] An array of ProjectPart objects

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

Gets the user for this project.
public getUser ( ) : User
Результат PartKeepr\AuthBundle\Entity\User

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

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

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

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

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

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

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

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

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

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