PHP Class Knp\Bundle\KnpBundlesBundle\Entity\Developer

Inheritance: extends Owner, implements Symfony\Component\Security\Core\User\UserInterface
Show file Open project: KnpLabs/KnpBundles Class Usage Examples

Public Methods

Method Description
__construct ( )
addActivity ( Activity $activity )
addContributionBundle ( Bundle $contributionBundle ) Add contribution Bundle
addFavoriteBundle ( Bundle $favoriteBundle ) Add favorite Bundle
addOrganization ( Organization $organization ) Add organizations
addRecommendedBundle ( Bundle $recommendedBundle ) Add recommended Bundle
eraseCredentials ( )
getActivities ( null | integer $page = null, integer $limit = 15 ) : Traversable Get activities
getAllBundles ( ) : array
getCompany ( ) : mixed
getContributionBundles ( null | integer $page = null, integer $limit = 15 ) : Traversable Get contributionBundles
getFavoriteBundles ( null | integer $page = null, integer $limit = 15 ) : Traversable Get favoriteBundles
getLastCommitAt ( ) : DateTime Get the date of the last commit
getLatestActivities ( $type = Activity::ACTIVITY_TYPE_COMMIT )
getOrganizations ( ) : Collection Get organizations
getPassword ( )
getRecommendedBundles ( null | integer $page = null, integer $limit = 15 ) : Traversable Get recommended Bundles
getRoles ( )
getSalt ( )
getUsername ( ) * ---------- Security User ----------
hasFavoritedBundle ( Bundle $bundle ) : boolean Check that user has favorited bundles
isEqualTo ( Developer $developer )
isUsingBundle ( Bundle $bundle ) : boolean Check that owner is using bundles
removeActivity ( Activity $activity )
removeContributionBundle ( Bundle $contributionBundle ) Remove contribution Bundle
removeFavoriteBundle ( Bundle $favoriteBundle ) Remove favorite Bundle
removeOrganization ( Organization $organization ) Remove organizations
removeRecommendedBundle ( Bundle $recommendedBundle ) Remove recommended Bundle
setCompany ( $company )
setLastCommitAt ( DateTime $lastCommitAt ) Set lastCommitAt
toSmallArray ( )

Method Details

__construct() public method

public __construct ( )

addActivity() public method

public addActivity ( Activity $activity )
$activity Activity

addContributionBundle() public method

Add contribution Bundle
public addContributionBundle ( Bundle $contributionBundle )
$contributionBundle Bundle

addFavoriteBundle() public method

Add favorite Bundle
public addFavoriteBundle ( Bundle $favoriteBundle )
$favoriteBundle Bundle

addOrganization() public method

Add organizations
public addOrganization ( Organization $organization )
$organization Organization

addRecommendedBundle() public method

Add recommended Bundle
public addRecommendedBundle ( Bundle $recommendedBundle )
$recommendedBundle Bundle

eraseCredentials() public method

public eraseCredentials ( )

getActivities() public method

Get activities
public getActivities ( null | integer $page = null, integer $limit = 15 ) : Traversable
$page null | integer
$limit integer
return Traversable

getAllBundles() public method

public getAllBundles ( ) : array
return array

getCompany() public method

public getCompany ( ) : mixed
return mixed

getContributionBundles() public method

Get contributionBundles
public getContributionBundles ( null | integer $page = null, integer $limit = 15 ) : Traversable
$page null | integer
$limit integer
return Traversable

getFavoriteBundles() public method

Get favoriteBundles
public getFavoriteBundles ( null | integer $page = null, integer $limit = 15 ) : Traversable
$page null | integer
$limit integer
return Traversable

getLastCommitAt() public method

Get the date of the last commit
public getLastCommitAt ( ) : DateTime
return DateTime

getLatestActivities() public method

public getLatestActivities ( $type = Activity::ACTIVITY_TYPE_COMMIT )

getOrganizations() public method

Get organizations
public getOrganizations ( ) : Collection
return Collection

getPassword() public method

public getPassword ( )

getRecommendedBundles() public method

Get recommended Bundles
public getRecommendedBundles ( null | integer $page = null, integer $limit = 15 ) : Traversable
$page null | integer
$limit integer
return Traversable

getRoles() public method

public getRoles ( )

getSalt() public method

public getSalt ( )

getUsername() public method

* ---------- Security User ----------
public getUsername ( )

hasFavoritedBundle() public method

Check that user has favorited bundles
public hasFavoritedBundle ( Bundle $bundle ) : boolean
$bundle Bundle
return boolean

isEqualTo() public method

public isEqualTo ( Developer $developer )
$developer Developer

isUsingBundle() public method

Check that owner is using bundles
public isUsingBundle ( Bundle $bundle ) : boolean
$bundle Bundle
return boolean

removeActivity() public method

public removeActivity ( Activity $activity )
$activity Activity

removeContributionBundle() public method

Remove contribution Bundle
public removeContributionBundle ( Bundle $contributionBundle )
$contributionBundle Bundle

removeFavoriteBundle() public method

Remove favorite Bundle
public removeFavoriteBundle ( Bundle $favoriteBundle )
$favoriteBundle Bundle

removeOrganization() public method

Remove organizations
public removeOrganization ( Organization $organization )
$organization Organization

removeRecommendedBundle() public method

Remove recommended Bundle
public removeRecommendedBundle ( Bundle $recommendedBundle )
$recommendedBundle Bundle

setCompany() public method

public setCompany ( $company )
$company

setLastCommitAt() public method

Set lastCommitAt
public setLastCommitAt ( DateTime $lastCommitAt )
$lastCommitAt DateTime

toSmallArray() public method

public toSmallArray ( )