PHP Class Knp\Bundle\KnpBundlesBundle\Manager\OwnerManager

Author: Romain Pouclet ([email protected])
Author: Joseph Bielawski ([email protected])
Datei anzeigen Open project: KnpLabs/KnpBundles Class Usage Examples

Public Methods

Method Description
__construct ( Doctrine\Common\Persistence\ObjectManager $entityManager, Github\Client $github )
createOwner ( string $ownerName, string $entityType = 'developer', boolean $flushEntities = true ) : boolean | Owner
findDeveloperBy ( array $data ) : null | Developer
findOrganizationBy ( array $data ) : null | Organization
findOwnerBy ( array $data ) : null | Owner
getApiByOwnerName ( string $ownerName ) : boolean | Knp\Bundle\KnpBundlesBundle\Github\OwnerInterface

Method Details

__construct() public method

public __construct ( Doctrine\Common\Persistence\ObjectManager $entityManager, Github\Client $github )
$entityManager Doctrine\Common\Persistence\ObjectManager
$github Github\Client

createOwner() public method

public createOwner ( string $ownerName, string $entityType = 'developer', boolean $flushEntities = true ) : boolean | Owner
$ownerName string
$entityType string
$flushEntities boolean
return boolean | Knp\Bundle\KnpBundlesBundle\Entity\Owner

findDeveloperBy() public method

public findDeveloperBy ( array $data ) : null | Developer
$data array
return null | Knp\Bundle\KnpBundlesBundle\Entity\Developer

findOrganizationBy() public method

public findOrganizationBy ( array $data ) : null | Organization
$data array
return null | Knp\Bundle\KnpBundlesBundle\Entity\Organization

findOwnerBy() public method

public findOwnerBy ( array $data ) : null | Owner
$data array
return null | Knp\Bundle\KnpBundlesBundle\Entity\Owner

getApiByOwnerName() public method

public getApiByOwnerName ( string $ownerName ) : boolean | Knp\Bundle\KnpBundlesBundle\Github\OwnerInterface
$ownerName string
return boolean | Knp\Bundle\KnpBundlesBundle\Github\OwnerInterface