PHP Class Newscoop\GimmeBundle\Entity\Client

Inheritance: extends FOS\OAuthServerBundle\Entity\Client
Show file Open project: sourcefabric/newscoop

Protected Properties

Property Type Description
$id
$name
$publication Newscoop\Entity\Publication
$trusted
$users array

Public Methods

Method Description
__construct ( ) Construct Client object
addUser ( User $user ) : self Add User to client
getId ( ) : mixed Gets the value of id.
getName ( ) : mixed Gets the value of name.
getPublication ( ) : Newscoop\Entity\Publication Gets the value of publication.
getRedirectUrisString ( )
getTrusted ( ) : boolean Gets trusted status.
getUsers ( ) : ArrayCollection Get all Client users
setId ( mixed $id ) : self Sets the value of id.
setName ( mixed $name ) : self Sets the value of name.
setPublication ( Publication $publication ) : self Sets the value of publication.
setTrusted ( boolean $trusted ) : self Sets trusted status.

Method Details

__construct() public method

Construct Client object
public __construct ( )

addUser() public method

Add User to client
public addUser ( User $user ) : self
$user Newscoop\Entity\User
return self

getId() public method

Gets the value of id.
public getId ( ) : mixed
return mixed

getName() public method

Gets the value of name.
public getName ( ) : mixed
return mixed

getPublication() public method

Gets the value of publication.
public getPublication ( ) : Newscoop\Entity\Publication
return Newscoop\Entity\Publication

getRedirectUrisString() public method

getTrusted() public method

Gets trusted status.
public getTrusted ( ) : boolean
return boolean

getUsers() public method

Get all Client users
public getUsers ( ) : ArrayCollection
return Doctrine\Common\Collections\ArrayCollection

setId() public method

Sets the value of id.
public setId ( mixed $id ) : self
$id mixed the id
return self

setName() public method

Sets the value of name.
public setName ( mixed $name ) : self
$name mixed the name
return self

setPublication() public method

Sets the value of publication.
public setPublication ( Publication $publication ) : self
$publication Newscoop\Entity\Publication the publication
return self

setTrusted() public method

Sets trusted status.
public setTrusted ( boolean $trusted ) : self
$trusted boolean App status
return self

Property Details

$id protected property

protected $id

$name protected property

protected $name

$publication protected property

protected Newscoop\Entity\Publication $publication
return Newscoop\Entity\Publication

$trusted protected property

protected $trusted

$users protected property

protected array $users
return array