PHP Class Knp\Bundle\KnpBundlesBundle\Entity\Owner

Show file Open project: KnpLabs/KnpBundles Class Usage Examples

Protected Properties

Property Type Description
$avatarUrl
$bundles Bundles the user owns
$createdAt User creation date (on this website)
$email User email
$fullName Full name of the user, like "Thibault Duplessis"
$githubId
$id
$location The user location
$name User name, e.g. "ornicar" Like in GitHub, this name is unique
$score Internal score of the User as the sum of his bundles' scores
$url

Public Methods

Method Description
__construct ( )
addBundle ( Bundle $bundle ) Add bundles
fromArray ( array $data ) Common method to fill in entity from array
getAvatarUrl ( ) : string Get avatarUrl
getBundleNames ( ) : array Get the names of this user bundles
getBundles ( ) : ArrayCollection Get bundles
getCreatedAt ( ) : DateTime Get createdAt
getEmail ( ) : string Get email
getFullName ( ) : string Get fullName
getGithubId ( ) : mixed
getGithubUrl ( ) : string Owner profile url on GitHub
getId ( ) : integer Get id
getLocation ( ) : string Get location
getName ( ) : string Get name
getNbBundles ( ) : integer Count the user bundles
getScore ( ) : integer Get score
getUrl ( ) : string Get url
hasBundles ( ) : boolean
removeBundle ( Bundle $bundle ) Remove bundles
setAvatarUrl ( string $avatarUrl ) Set avatarUrl
setCreatedAt ( DateTime $createdAt ) Set createdAt
setEmail ( string $email ) Set email
setFullName ( string $fullName ) Set fullName
setGithubId ( string $githubId )
setLocation ( string $location ) Set location
setName ( string $name ) Set name
setScore ( integer $score ) Set score
setUrl ( string $url ) Set url

Method Details

__construct() public method

public __construct ( )

addBundle() public method

Add bundles
public addBundle ( Bundle $bundle )
$bundle Bundle

fromArray() public method

Common method to fill in entity from array
public fromArray ( array $data )
$data array

getAvatarUrl() public method

Get avatarUrl
public getAvatarUrl ( ) : string
return string

getBundleNames() public method

Get the names of this user bundles
public getBundleNames ( ) : array
return array

getBundles() public method

Get bundles
public getBundles ( ) : ArrayCollection
return Doctrine\Common\Collections\ArrayCollection

getCreatedAt() public method

Get createdAt
public getCreatedAt ( ) : DateTime
return DateTime

getEmail() public method

Get email
public getEmail ( ) : string
return string

getFullName() public method

Get fullName
public getFullName ( ) : string
return string

getGithubId() public method

public getGithubId ( ) : mixed
return mixed

getGithubUrl() public method

Owner profile url on GitHub
public getGithubUrl ( ) : string
return string

getId() public method

Get id
public getId ( ) : integer
return integer

getLocation() public method

Get location
public getLocation ( ) : string
return string

getName() public method

Get name
public getName ( ) : string
return string

getNbBundles() public method

Count the user bundles
public getNbBundles ( ) : integer
return integer

getScore() public method

Get score
public getScore ( ) : integer
return integer

getUrl() public method

Get url
public getUrl ( ) : string
return string

hasBundles() public method

public hasBundles ( ) : boolean
return boolean

removeBundle() public method

Remove bundles
public removeBundle ( Bundle $bundle )
$bundle Bundle

setAvatarUrl() public method

Set avatarUrl
public setAvatarUrl ( string $avatarUrl )
$avatarUrl string

setCreatedAt() public method

Set createdAt
public setCreatedAt ( DateTime $createdAt )
$createdAt DateTime

setEmail() public method

Set email
public setEmail ( string $email )
$email string

setFullName() public method

Set fullName
public setFullName ( string $fullName )
$fullName string

setGithubId() public method

public setGithubId ( string $githubId )
$githubId string

setLocation() public method

Set location
public setLocation ( string $location )
$location string

setName() public method

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

setScore() public method

Set score
public setScore ( integer $score )
$score integer

setUrl() public method

Set url
public setUrl ( string $url )
$url string

Property Details

$avatarUrl protected property

protected $avatarUrl

$bundles protected property

Bundles the user owns
protected $bundles

$createdAt protected property

User creation date (on this website)
protected $createdAt

$email protected property

User email
protected $email

$fullName protected property

Full name of the user, like "Thibault Duplessis"
protected $fullName

$githubId protected property

protected $githubId

$id protected property

protected $id

$location protected property

The user location
protected $location

$name protected property

User name, e.g. "ornicar" Like in GitHub, this name is unique
protected $name

$score protected property

Internal score of the User as the sum of his bundles' scores
protected $score

$url protected property

protected $url