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

Mostrar archivo Open project: bravo3/orm Class Usage Examples

Protected Properties

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

Public Methods

Method Description
addArticle ( Article $article ) Add an article to the category
addAsset ( Asset $asset ) Add an asset to the category
getArticles ( ) : Article[] Get Articles
getAssets ( ) : Asset[] Get Assets
getId ( ) : mixed Get Id
getName ( ) : string Get Name
removeArticle ( Article $article ) Remove an article from the category
removeAsset ( Asset $asset ) Remove an asset from the category
setArticles ( array $articles ) Set Articles
setAssets ( array $assets ) Set Assets
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

addAsset() public method

Add an asset to the category
public addAsset ( Asset $asset )
$asset Asset

getArticles() public method

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

getAssets() public method

Get Assets
public getAssets ( ) : Asset[]
return Asset[]

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

removeAsset() public method

Remove an asset from the category
public removeAsset ( Asset $asset )
$asset Asset

setArticles() public method

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

setAssets() public method

Set Assets
public setAssets ( array $assets )
$assets 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\Conditional $articles
return Article[]

$assets protected_oe property

protected Asset[],Bravo3\Orm\Tests\Entities\Conditional $assets
return Asset[]

$id protected_oe property

protected int $id
return integer

$name protected_oe property

protected string $name
return string