PHP Класс Knp\Bundle\KnpBundlesBundle\Entity\Bundle

Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$activities Doctrine\Common\Collections\Collection
$canonicalConfig The bundle canonical configuration yaml extracted from bundle's repo
$composerName Composer name
$contributors Doctrine\Common\Collections\Collection Developers who contributed to the Repo
$createdAt Repo creation date (on this website)
$description Repo description
$favorers Doctrine\Common\Collections\Collection Developers who has favorited the bundle
$homepage The website url, if any
$id
$indexedAt Last indexing time.
$isFork True if the Repo is a fork
$keywords Doctrine\Common\Collections\Collection Bundle keywords
$lastCheckAt Date of the last successful GitHub check
$lastCommitAt Date of the last Git commit
$lastTweetedAt Date when bundle was tweeted from knplabs account.
$license The bundle license text extracted from source code
$licenseType The bundle license type extracted from composer.json
$name Repo name, e.g. "MarkdownBundle" Like in GitHub, this name is not unique
$nbFavorers
$nbFollowers Number of GitHub followers
$nbForks Number of GitHub forks
$nbRecommenders
$owner Doctrine\Common\Collections\Collection Owner of the bundle
$ownerName The name of the owner who owns this bundle This value is redundant with the name of the referenced Owner, for performance reasons
$ownerType The type of the owner who owns this bundle This value is redundant with the class of the referenced Owner, for performance reasons
$readme The bundle readme text extracted from source code
$recommenders Doctrine\Common\Collections\Collection Developers recommending the bundle
$score Internal score of the Repo, based on several indicators Defines the Repo position in lists and searches
$scoreDetails array Latest score's details
$scores Doctrine\Common\Collections\Collection Internal scores
$state Status of bundle
$travisCiBuildStatus Travis Ci last build status
$trend1 Trend over the last day. Max is better.
$updatedAt Repo update date (on this website)
$usesTravisCi True if the Repo uses Travis CI
$versionsHistory Bundle versions history

Открытые методы

Метод Описание
__construct ( null | string $fullName = null )
__toString ( )
addActivity ( Activity $activity )
addFavorer ( Developer $developer )
addKeyword ( Keyword $keyword )
addRecommender ( Developer $developer )
addScoreDetail ( $name, $value )
countKeywords ( ) : integer
fromArray ( array $data )
getActivities ( null | integer $page = null, integer $limit = 15 ) : Traversable Get activities
getCanonicalConfig ( ) : string Get canonicalConfig
getClass ( )
getComposerName ( ) : string Get Composer name
getContributorNames ( )
getContributors ( null | integer $page = null, integer $limit = 20 ) : Traversable Get contributors
getCreatedAt ( ) : DateTime Get the bundle creation date
getDaysSinceLastCommit ( ) : integer Returns the number of days elapsed since the last commit on the master branch
getDescription ( null | integer $cutAfter = null ) : string Get description
getFavorers ( null | integer $page = null, integer $limit = 20 ) : Traversable
getFullName ( ) : string Get full name, including ownerName
getGitHubUrl ( ) : string Get the GitHub url of this bundle
getGitUrl ( ) : string Get the Git repo url
getHomepage ( ) : string Get homepage
getId ( ) : string Get id
getIndexedAt ( ) : DateTime Get indexedAt
getIsFork ( ) : boolean Get isFork
getKeywords ( ) : Doctrine\Common\Collections\Collection
getLastCheckAt ( ) : DateTime Get the date of last check
getLastCommitAt ( ) : DateTime Get the date of the last commit
getLastTweetedAt ( ) : null | DateTime Get lastTweetedAt
getLatestActivities ( $type = Activity::ACTIVITY_TYPE_COMMIT )
getLatestScoreDetails ( )
getLicense ( ) : string Get license data
getLicenseType ( ) : string Get license type
getName ( ) : string Get name
getNbContributors ( ) : integer Get the number of contributors
getNbFavorers ( )
getNbFollowers ( ) : integer Get followers
getNbForks ( ) : integer Get forks
getNbRecommenders ( )
getOwner ( ) : Owner
getOwnerName ( ) : string Get ownername
getOwnerType ( ) : string
getPackagistUrl ( ) : string Get the Packagist url of this repo
getReadme ( ) : string Get readme
getRecommenders ( null | integer $page = null, integer $limit = 20 ) : Traversable
getScore ( ) : integer Get score
getScoreDetails ( ) Returns details about the bundle's score
getScores ( integer $limit = null ) : array Get all historical scores indexed by date
getShortName ( ) : string Get the first part of the name, without Bundle
getState ( ) : string Get the status of bundle
getStatusHash ( ) : string Unique string which shows current status of the bundle
getSymfonyVersions ( ) : array | null Get required versions of Symfony from bundle Versions History
getTravisCiBuildStatus ( ) : string Get Travis Ci last build status
getTravisUrl ( ) : string Get the Travis Ci url of this bundle
getTrend1 ( ) : integer Get the trend over the last day
getUpdatedAt ( ) : DateTime Get the bundle update date
getUsesTravisCi ( ) : boolean Get whether bundle uses Travis CI
getVersionsHistory ( ) : array Get bundle versions history
hasChanges ( ) : boolean
hasKeyword ( Keyword $keyword ) : boolean
isInitialized ( )
isOwnerOrContributor ( Owner $owner ) : boolean
markAsCreated ( )
markAsUpdated ( )
recalculateScore ( ) Calculate the score of this bundle based on several factors.
removeFavorer ( Developer $developer )
removeRecommender ( Developer $developer )
setCanonicalConfig ( $canonicalConfig ) Set canonicalConfig
setComposerName ( $name ) Set Composer name
setContributors ( array $contributors ) Set contributors
setCreatedAt ( DateTime $createdAt ) Set the bundle creation date
setDescription ( string $description ) Set description
setHomepage ( string $homepage ) Set homepage
setIndexedAt ( DateTime $indexedAt ) Set indexedAt
setIsFork ( boolean $isFork ) Set isFork
setLastCheckAt ( DateTime $lastCheckAt ) Set the date of last check
setLastCommitAt ( DateTime $lastCommitAt ) Set lastCommitAt
setLastTweetedAt ( DateTime $lastTweetedAt ) Set lastTweetedAt
setLicense ( string $license ) Set license data
setLicenseType ( string $license ) Set license type
setName ( $name ) Set name
setNbFavorers ( integer $nbFavorers )
setNbFollowers ( integer $nbFollowers ) Set followers
setNbForks ( integer $nbForks ) Set forks
setNbRecommenders ( integer $nbRecommenders )
setOwner ( Owner $owner )
setOwnerName ( string $ownerName ) Set ownerName
setReadme ( string $readme ) Set readme
setScore ( integer $score ) Set score
setScoreDetails ( array $details )
setState ( $state ) Set status of bundle
setTravisCiBuildStatus ( string $status ) Set Travis Ci last build status
setUsesTravisCi ( boolean $uses ) Set whether bundle uses Travis CI
setVersionsHistory ( array $versions ) Set bundle versions history
toBigArray ( ) : array Get an array representing the Repo
toSmallArray ( )
updateScore ( integer $points = 1 ) Updates bundle score with given amount of points

Описание методов

__construct() публичный Метод

public __construct ( null | string $fullName = null )
$fullName null | string

__toString() публичный Метод

public __toString ( )

addActivity() публичный Метод

public addActivity ( Activity $activity )
$activity Activity

addFavorer() публичный Метод

public addFavorer ( Developer $developer )
$developer Developer

addKeyword() публичный Метод

public addKeyword ( Keyword $keyword )
$keyword Keyword

addRecommender() публичный Метод

public addRecommender ( Developer $developer )
$developer Developer

addScoreDetail() публичный Метод

public addScoreDetail ( $name, $value )

countKeywords() публичный Метод

public countKeywords ( ) : integer
Результат integer Total nb of keywords for this bundle

fromArray() публичный Метод

public fromArray ( array $data )
$data array

getActivities() публичный Метод

Get activities
public getActivities ( null | integer $page = null, integer $limit = 15 ) : Traversable
$page null | integer
$limit integer
Результат Traversable

getCanonicalConfig() публичный Метод

Get canonicalConfig
public getCanonicalConfig ( ) : string
Результат string

getClass() публичный Метод

public getClass ( )

getComposerName() публичный Метод

Get Composer name
public getComposerName ( ) : string
Результат string

getContributorNames() публичный Метод

public getContributorNames ( )

getContributors() публичный Метод

Get contributors
public getContributors ( null | integer $page = null, integer $limit = 20 ) : Traversable
$page null | integer
$limit integer
Результат Traversable

getCreatedAt() публичный Метод

Get the bundle creation date
public getCreatedAt ( ) : DateTime
Результат DateTime

getDaysSinceLastCommit() публичный Метод

Returns the number of days elapsed since the last commit on the master branch
public getDaysSinceLastCommit ( ) : integer
Результат integer

getDescription() публичный Метод

Get description
public getDescription ( null | integer $cutAfter = null ) : string
$cutAfter null | integer
Результат string

getFavorers() публичный Метод

public getFavorers ( null | integer $page = null, integer $limit = 20 ) : Traversable
$page null | integer
$limit integer
Результат Traversable

getFullName() публичный Метод

Get full name, including ownerName
public getFullName ( ) : string
Результат string

getGitHubUrl() публичный Метод

Get the GitHub url of this bundle
public getGitHubUrl ( ) : string
Результат string

getGitUrl() публичный Метод

Get the Git repo url
public getGitUrl ( ) : string
Результат string

getHomepage() публичный Метод

Get homepage
public getHomepage ( ) : string
Результат string

getId() публичный Метод

Get id
public getId ( ) : string
Результат string

getIndexedAt() публичный Метод

Get indexedAt
public getIndexedAt ( ) : DateTime
Результат DateTime

getIsFork() публичный Метод

Get isFork
public getIsFork ( ) : boolean
Результат boolean

getKeywords() публичный Метод

public getKeywords ( ) : Doctrine\Common\Collections\Collection
Результат Doctrine\Common\Collections\Collection

getLastCheckAt() публичный Метод

Get the date of last check
public getLastCheckAt ( ) : DateTime
Результат DateTime

getLastCommitAt() публичный Метод

Get the date of the last commit
public getLastCommitAt ( ) : DateTime
Результат DateTime

getLastTweetedAt() публичный Метод

Get lastTweetedAt
public getLastTweetedAt ( ) : null | DateTime
Результат null | DateTime

getLatestActivities() публичный Метод

public getLatestActivities ( $type = Activity::ACTIVITY_TYPE_COMMIT )

getLatestScoreDetails() публичный Метод

getLicense() публичный Метод

Get license data
public getLicense ( ) : string
Результат string

getLicenseType() публичный Метод

Get license type
public getLicenseType ( ) : string
Результат string

getName() публичный Метод

Get name
public getName ( ) : string
Результат string

getNbContributors() публичный Метод

Get the number of contributors
public getNbContributors ( ) : integer
Результат integer

getNbFavorers() публичный Метод

public getNbFavorers ( )

getNbFollowers() публичный Метод

Get followers
public getNbFollowers ( ) : integer
Результат integer

getNbForks() публичный Метод

Get forks
public getNbForks ( ) : integer
Результат integer

getNbRecommenders() публичный Метод

public getNbRecommenders ( )

getOwner() публичный Метод

public getOwner ( ) : Owner
Результат Owner

getOwnerName() публичный Метод

Get ownername
public getOwnerName ( ) : string
Результат string

getOwnerType() публичный Метод

public getOwnerType ( ) : string
Результат string

getPackagistUrl() публичный Метод

Get the Packagist url of this repo
public getPackagistUrl ( ) : string
Результат string

getReadme() публичный Метод

Get readme
public getReadme ( ) : string
Результат string

getRecommenders() публичный Метод

public getRecommenders ( null | integer $page = null, integer $limit = 20 ) : Traversable
$page null | integer
$limit integer
Результат Traversable

getScore() публичный Метод

Get score
public getScore ( ) : integer
Результат integer

getScoreDetails() публичный Метод

Returns details about the bundle's score
public getScoreDetails ( )

getScores() публичный Метод

Get all historical scores indexed by date
public getScores ( integer $limit = null ) : array
$limit integer
Результат array

getShortName() публичный Метод

Get the first part of the name, without Bundle
public getShortName ( ) : string
Результат string

getState() публичный Метод

Get the status of bundle
public getState ( ) : string
Результат string

getStatusHash() публичный Метод

Unique string which shows current status of the bundle
public getStatusHash ( ) : string
Результат string

getSymfonyVersions() публичный Метод

Get required versions of Symfony from bundle Versions History
public getSymfonyVersions ( ) : array | null
Результат array | null

getTravisCiBuildStatus() публичный Метод

Get Travis Ci last build status
public getTravisCiBuildStatus ( ) : string
Результат string

getTravisUrl() публичный Метод

Get the Travis Ci url of this bundle
public getTravisUrl ( ) : string
Результат string

getTrend1() публичный Метод

Get the trend over the last day
public getTrend1 ( ) : integer
Результат integer

getUpdatedAt() публичный Метод

Get the bundle update date
public getUpdatedAt ( ) : DateTime
Результат DateTime

getUsesTravisCi() публичный Метод

Get whether bundle uses Travis CI
public getUsesTravisCi ( ) : boolean
Результат boolean

getVersionsHistory() публичный Метод

Get bundle versions history
public getVersionsHistory ( ) : array
Результат array

hasChanges() публичный Метод

public hasChanges ( ) : boolean
Результат boolean

hasKeyword() публичный Метод

public hasKeyword ( Keyword $keyword ) : boolean
$keyword Keyword
Результат boolean

isInitialized() публичный Метод

public isInitialized ( )

isOwnerOrContributor() публичный Метод

public isOwnerOrContributor ( Owner $owner ) : boolean
$owner Owner
Результат boolean

markAsCreated() публичный Метод

public markAsCreated ( )

markAsUpdated() публичный Метод

public markAsUpdated ( )

recalculateScore() публичный Метод

The score is used as the default sort field in many places. #TODO discuss me, improve me
public recalculateScore ( )

removeFavorer() публичный Метод

public removeFavorer ( Developer $developer )
$developer Developer

removeRecommender() публичный Метод

public removeRecommender ( Developer $developer )
$developer Developer

setCanonicalConfig() публичный Метод

Set canonicalConfig
public setCanonicalConfig ( $canonicalConfig )
$canonicalConfig

setComposerName() публичный Метод

Set Composer name
public setComposerName ( $name )

setContributors() публичный Метод

Set contributors
public setContributors ( array $contributors )
$contributors array

setCreatedAt() публичный Метод

Set the bundle creation date
public setCreatedAt ( DateTime $createdAt )
$createdAt DateTime

setDescription() публичный Метод

Set description
public setDescription ( string $description )
$description string

setHomepage() публичный Метод

Set homepage
public setHomepage ( string $homepage )
$homepage string

setIndexedAt() публичный Метод

Set indexedAt
public setIndexedAt ( DateTime $indexedAt )
$indexedAt DateTime

setIsFork() публичный Метод

Set isFork
public setIsFork ( boolean $isFork )
$isFork boolean

setLastCheckAt() публичный Метод

Set the date of last check
public setLastCheckAt ( DateTime $lastCheckAt )
$lastCheckAt DateTime

setLastCommitAt() публичный Метод

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

setLastTweetedAt() публичный Метод

Set lastTweetedAt
public setLastTweetedAt ( DateTime $lastTweetedAt )
$lastTweetedAt DateTime

setLicense() публичный Метод

Set license data
public setLicense ( string $license )
$license string

setLicenseType() публичный Метод

Set license type
public setLicenseType ( string $license )
$license string

setName() публичный Метод

Set name
public setName ( $name )

setNbFavorers() публичный Метод

public setNbFavorers ( integer $nbFavorers )
$nbFavorers integer

setNbFollowers() публичный Метод

Set followers
public setNbFollowers ( integer $nbFollowers )
$nbFollowers integer

setNbForks() публичный Метод

Set forks
public setNbForks ( integer $nbForks )
$nbForks integer

setNbRecommenders() публичный Метод

public setNbRecommenders ( integer $nbRecommenders )
$nbRecommenders integer

setOwner() публичный Метод

public setOwner ( Owner $owner )
$owner Owner

setOwnerName() публичный Метод

Set ownerName
public setOwnerName ( string $ownerName )
$ownerName string

setReadme() публичный Метод

Set readme
public setReadme ( string $readme )
$readme string

setScore() публичный Метод

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

setScoreDetails() публичный Метод

public setScoreDetails ( array $details )
$details array

setState() публичный Метод

Set status of bundle
public setState ( $state )

setTravisCiBuildStatus() публичный Метод

Set Travis Ci last build status
public setTravisCiBuildStatus ( string $status )
$status string

setUsesTravisCi() публичный Метод

Set whether bundle uses Travis CI
public setUsesTravisCi ( boolean $uses )
$uses boolean

setVersionsHistory() публичный Метод

Set bundle versions history
public setVersionsHistory ( array $versions )
$versions array

toBigArray() публичный Метод

Get an array representing the Repo
public toBigArray ( ) : array
Результат array

toSmallArray() публичный Метод

public toSmallArray ( )

updateScore() публичный Метод

Updates bundle score with given amount of points
public updateScore ( integer $points = 1 )
$points integer

Описание свойств

$activities защищенное свойство

protected Collection,Doctrine\Common\Collections $activities
Результат Doctrine\Common\Collections\Collection

$canonicalConfig защищенное свойство

The bundle canonical configuration yaml extracted from bundle's repo
protected $canonicalConfig

$composerName защищенное свойство

Composer name
protected $composerName

$contributors защищенное свойство

Developers who contributed to the Repo
protected Collection,Doctrine\Common\Collections $contributors
Результат Doctrine\Common\Collections\Collection

$createdAt защищенное свойство

Repo creation date (on this website)
protected $createdAt

$description защищенное свойство

Repo description
protected $description

$favorers защищенное свойство

Developers who has favorited the bundle
protected Collection,Doctrine\Common\Collections $favorers
Результат Doctrine\Common\Collections\Collection

$homepage защищенное свойство

The website url, if any
protected $homepage

$id защищенное свойство

protected $id

$indexedAt защищенное свойство

Last indexing time.
protected $indexedAt

$isFork защищенное свойство

True if the Repo is a fork
protected $isFork

$keywords защищенное свойство

Bundle keywords
protected Collection,Doctrine\Common\Collections $keywords
Результат Doctrine\Common\Collections\Collection

$lastCheckAt защищенное свойство

Date of the last successful GitHub check
protected $lastCheckAt

$lastCommitAt защищенное свойство

Date of the last Git commit
protected $lastCommitAt

$lastTweetedAt защищенное свойство

Date when bundle was tweeted from knplabs account.
protected $lastTweetedAt

$license защищенное свойство

The bundle license text extracted from source code
protected $license

$licenseType защищенное свойство

The bundle license type extracted from composer.json
protected $licenseType

$name защищенное свойство

Repo name, e.g. "MarkdownBundle" Like in GitHub, this name is not unique
protected $name

$nbFavorers защищенное свойство

protected $nbFavorers

$nbFollowers защищенное свойство

Number of GitHub followers
protected $nbFollowers

$nbForks защищенное свойство

Number of GitHub forks
protected $nbForks

$nbRecommenders защищенное свойство

protected $nbRecommenders

$owner защищенное свойство

Owner of the bundle
protected Collection,Doctrine\Common\Collections $owner
Результат Doctrine\Common\Collections\Collection

$ownerName защищенное свойство

The name of the owner who owns this bundle This value is redundant with the name of the referenced Owner, for performance reasons
protected $ownerName

$ownerType защищенное свойство

The type of the owner who owns this bundle This value is redundant with the class of the referenced Owner, for performance reasons
protected $ownerType

$readme защищенное свойство

The bundle readme text extracted from source code
protected $readme

$recommenders защищенное свойство

Developers recommending the bundle
protected Collection,Doctrine\Common\Collections $recommenders
Результат Doctrine\Common\Collections\Collection

$score защищенное свойство

Internal score of the Repo, based on several indicators Defines the Repo position in lists and searches
protected $score

$scoreDetails защищенное свойство

Latest score's details
protected array $scoreDetails
Результат array

$scores защищенное свойство

Internal scores
protected Collection,Doctrine\Common\Collections $scores
Результат Doctrine\Common\Collections\Collection

$state защищенное свойство

Status of bundle
protected $state

$travisCiBuildStatus защищенное свойство

Travis Ci last build status
protected $travisCiBuildStatus

$trend1 защищенное свойство

Trend over the last day. Max is better.
protected $trend1

$updatedAt защищенное свойство

Repo update date (on this website)
protected $updatedAt

$usesTravisCi защищенное свойство

True if the Repo uses Travis CI
protected $usesTravisCi

$versionsHistory защищенное свойство

Bundle versions history
protected $versionsHistory