PHP Class Knp\Bundle\KnpBundlesBundle\Entity\Owner

Afficher le fichier Open project: KnpLabs/KnpBundles Class Usage Examples

Protected Properties

Свойство 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

Méthodes publiques

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

public __construct ( )

addBundle() public méthode

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

fromArray() public méthode

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

getAvatarUrl() public méthode

Get avatarUrl
public getAvatarUrl ( ) : string
Résultat string

getBundleNames() public méthode

Get the names of this user bundles
public getBundleNames ( ) : array
Résultat array

getBundles() public méthode

Get bundles
public getBundles ( ) : ArrayCollection
Résultat Doctrine\Common\Collections\ArrayCollection

getCreatedAt() public méthode

Get createdAt
public getCreatedAt ( ) : DateTime
Résultat DateTime

getEmail() public méthode

Get email
public getEmail ( ) : string
Résultat string

getFullName() public méthode

Get fullName
public getFullName ( ) : string
Résultat string

getGithubId() public méthode

public getGithubId ( ) : mixed
Résultat mixed

getGithubUrl() public méthode

Owner profile url on GitHub
public getGithubUrl ( ) : string
Résultat string

getId() public méthode

Get id
public getId ( ) : integer
Résultat integer

getLocation() public méthode

Get location
public getLocation ( ) : string
Résultat string

getName() public méthode

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

getNbBundles() public méthode

Count the user bundles
public getNbBundles ( ) : integer
Résultat integer

getScore() public méthode

Get score
public getScore ( ) : integer
Résultat integer

getUrl() public méthode

Get url
public getUrl ( ) : string
Résultat string

hasBundles() public méthode

public hasBundles ( ) : boolean
Résultat boolean

removeBundle() public méthode

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

setAvatarUrl() public méthode

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

setCreatedAt() public méthode

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

setEmail() public méthode

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

setFullName() public méthode

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

setGithubId() public méthode

public setGithubId ( string $githubId )
$githubId string

setLocation() public méthode

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

setName() public méthode

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

setScore() public méthode

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

setUrl() public méthode

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

Property Details

$avatarUrl protected_oe property

protected $avatarUrl

$bundles protected_oe property

Bundles the user owns
protected $bundles

$createdAt protected_oe property

User creation date (on this website)
protected $createdAt

$email protected_oe property

User email
protected $email

$fullName protected_oe property

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

$githubId protected_oe property

protected $githubId

$id protected_oe property

protected $id

$location protected_oe property

The user location
protected $location

$name protected_oe property

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

$score protected_oe property

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

$url protected_oe property

protected $url