PHP Class Knp\Bundle\KnpBundlesBundle\Git\Repo

Show file Open project: KnpLabs/KnpBundles Class Usage Examples

Protected Properties

Property Type Description
$entity Knp\Bundle\KnpBundlesBundle\Entity\Bundle Repo entity
$gitRepo PHPGit_Repository Git repository wrapper

Public Methods

Method 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 method

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

getBundleEntity() public method

Get entity
public getBundleEntity ( ) : Bundle
return Knp\Bundle\KnpBundlesBundle\Entity\Bundle

getCommits() public method

public getCommits ( $nb = 12 )

getDir() public method

Returns the git repository directory
public getDir ( ) : string
return string

getFileContent() public method

public getFileContent ( $file )

getGitRepo() public method

Get gitRepo
public getGitRepo ( ) : PHPGit_Repository
return PHPGit_Repository

hasFile() public method

public hasFile ( $file )

setBundleEntity() public method

Set entity
public setBundleEntity ( $entity ) : null
return null

setGitRepo() public method

Set gitRepo
public setGitRepo ( $gitRepo ) : null
return null

update() public method

public update ( )

Property Details

$entity protected property

Repo entity
protected Bundle,Knp\Bundle\KnpBundlesBundle\Entity $entity
return Knp\Bundle\KnpBundlesBundle\Entity\Bundle

$gitRepo protected property

Git repository wrapper
protected PHPGit_Repository $gitRepo
return PHPGit_Repository