PHP Class AppBundle\Entity\Post

Show file Open project: alfonsomga/symfony.demo.on.roids Class Usage Examples

Public Methods

Method Description
__construct ( )
addComment ( Comment $comment )
getAuthorEmail ( )
getComments ( )
getContent ( )
getGeneratedAt ( )
getId ( )
getIsPdfGenerated ( )
getPdfName ( )
getPublishedAt ( )
getSlug ( )
getSummary ( )
getTitle ( )
getUpdatedAt ( )
isAuthor ( User $user ) : boolean Is the given User the author of this Post?
removeComment ( Comment $comment )
setAuthorEmail ( $authorEmail )
setContent ( $content )
setGeneratedAt ( $generatedAt )
setId ( $id )
setIsPdfGenerated ( $isPdfGenerated )
setPdfName ( $pdfName )
setPublishedAt ( $publishedAt )
setSlug ( $slug )
setSummary ( $summary )
setTitle ( $title )
setUpdatedAt ( $updatedAt )

Method Details

__construct() public method

public __construct ( )

addComment() public method

public addComment ( Comment $comment )
$comment Comment

getAuthorEmail() public method

public getAuthorEmail ( )

getComments() public method

public getComments ( )

getContent() public method

public getContent ( )

getGeneratedAt() public method

public getGeneratedAt ( )

getId() public method

public getId ( )

getIsPdfGenerated() public method

public getIsPdfGenerated ( )

getPdfName() public method

public getPdfName ( )

getPublishedAt() public method

public getPublishedAt ( )

getSlug() public method

public getSlug ( )

getSummary() public method

public getSummary ( )

getTitle() public method

public getTitle ( )

getUpdatedAt() public method

public getUpdatedAt ( )

isAuthor() public method

Is the given User the author of this Post?
public isAuthor ( User $user ) : boolean
$user User
return boolean

removeComment() public method

public removeComment ( Comment $comment )
$comment Comment

setAuthorEmail() public method

public setAuthorEmail ( $authorEmail )

setContent() public method

public setContent ( $content )

setGeneratedAt() public method

public setGeneratedAt ( $generatedAt )

setId() public method

public setId ( $id )

setIsPdfGenerated() public method

public setIsPdfGenerated ( $isPdfGenerated )

setPdfName() public method

public setPdfName ( $pdfName )

setPublishedAt() public method

public setPublishedAt ( $publishedAt )

setSlug() public method

public setSlug ( $slug )

setSummary() public method

public setSummary ( $summary )

setTitle() public method

public setTitle ( $title )

setUpdatedAt() public method

public setUpdatedAt ( $updatedAt )