PHP Class Bravo3\Orm\Tests\Entities\OneToMany\Category

Datei anzeigen Open project: bravo3/orm Class Usage Examples

Protected Properties

Property Type Description
$articles Article[]
$id integer
$name string

Public Methods

Method Description
addArticle ( Article $article ) Add an article to the category
getArticles ( ) : Article[] Get Articles
getId ( ) : mixed Get Id
getName ( ) : string Get Name
removeArticle ( Article $article ) Remove an article from the category
setArticles ( array $articles ) Set Articles
setId ( mixed $id ) Set Id
setName ( string $name ) Set Name

Method Details

addArticle() public method

Add an article to the category
public addArticle ( Article $article )
$article Article

getArticles() public method

Get Articles
public getArticles ( ) : Article[]
return Article[]

getId() public method

Get Id
public getId ( ) : mixed
return mixed

getName() public method

Get Name
public getName ( ) : string
return string

removeArticle() public method

Remove an article from the category
public removeArticle ( Article $article )
$article Article

setArticles() public method

Set Articles
public setArticles ( array $articles )
$articles array

setId() public method

Set Id
public setId ( mixed $id )
$id mixed

setName() public method

Set Name
public setName ( string $name )
$name string

Property Details

$articles protected_oe property

protected Article[],Bravo3\Orm\Tests\Entities\OneToMany $articles
return Article[]

$id protected_oe property

protected int $id
return integer

$name protected_oe property

protected string $name
return string