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

Afficher le fichier Open project: bravo3/orm Class Usage Examples

Protected Properties

Свойство Type Description
$articles Article[]
$id integer
$name string

Méthodes publiques

Méthode 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 méthode

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

getArticles() public méthode

Get Articles
public getArticles ( ) : Article[]
Résultat Article[]

getId() public méthode

Get Id
public getId ( ) : mixed
Résultat mixed

getName() public méthode

Get Name
public getName ( ) : string
Résultat string

removeArticle() public méthode

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

setArticles() public méthode

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

setId() public méthode

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

setName() public méthode

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

Property Details

$articles protected_oe property

protected Article[],Bravo3\Orm\Tests\Entities\OneToMany $articles
Résultat Article[]

$id protected_oe property

protected int $id
Résultat integer

$name protected_oe property

protected string $name
Résultat string