PHP Class Knp\Bundle\KnpBundlesBundle\Git\Repo

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

Protected Properties

Свойство Type Description
$entity Knp\Bundle\KnpBundlesBundle\Entity\Bundle Repo entity
$gitRepo PHPGit_Repository Git repository wrapper

Méthodes publiques

Méthode Description
__construct ( Bundle $repoEntity, PHPGit_Repository $gitRepo )
getBundleEntity ( ) : Bundle Get entity
getCommits ( $nb = 12 )
getDir ( ) : string Returns the git repository directory
getFileContent ( $file )
getGitRepo ( ) : PHPGit_Repository Get gitRepo
hasFile ( $file )
setBundleEntity ( $entity ) : null Set entity
setGitRepo ( $gitRepo ) : null Set gitRepo
update ( )

Method Details

__construct() public méthode

public __construct ( Bundle $repoEntity, PHPGit_Repository $gitRepo )
$repoEntity Knp\Bundle\KnpBundlesBundle\Entity\Bundle
$gitRepo PHPGit_Repository

getBundleEntity() public méthode

Get entity
public getBundleEntity ( ) : Bundle
Résultat Knp\Bundle\KnpBundlesBundle\Entity\Bundle

getCommits() public méthode

public getCommits ( $nb = 12 )

getDir() public méthode

Returns the git repository directory
public getDir ( ) : string
Résultat string

getFileContent() public méthode

public getFileContent ( $file )

getGitRepo() public méthode

Get gitRepo
public getGitRepo ( ) : PHPGit_Repository
Résultat PHPGit_Repository

hasFile() public méthode

public hasFile ( $file )

setBundleEntity() public méthode

Set entity
public setBundleEntity ( $entity ) : null
Résultat null

setGitRepo() public méthode

Set gitRepo
public setGitRepo ( $gitRepo ) : null
Résultat null

update() public méthode

public update ( )

Property Details

$entity protected_oe property

Repo entity
protected Bundle,Knp\Bundle\KnpBundlesBundle\Entity $entity
Résultat Knp\Bundle\KnpBundlesBundle\Entity\Bundle

$gitRepo protected_oe property

Git repository wrapper
protected PHPGit_Repository $gitRepo
Résultat PHPGit_Repository