PHP Class Jarves\ORM\Builder\Builder

Show file Open project: jarves/jarves

Protected Properties

Property Type Description
$builder Jarves\ORM\Builder\BuildInterface[]
$jarves Jarves\Jarves
$objects Jarves\Configuration\Object[]

Public Methods

Method Description
__construct ( Jarves $jarves )
addBuilder ( string $id, Jarves\ORM\Builder\BuildInterface $builder )
addObject ( Object $objectDefinition )
boot ( ) Checks if at least one orm builder needs a build and triggers the build then.
bootBuildTime ( ) Loads all objects and
build ( Symfony\Component\Console\Output\OutputInterface $output = null ) : string Calls build on each builder.
getBuilder ( string $id ) : Jarves\ORM\Builder\BuildInterface
getJarves ( ) : Jarves
getObject ( string $objectKey ) : Object
hasObject ( string $objectKey ) : boolean
needsBuild ( ) : boolean Returns whether at least one orm builder needs a build.
setJarves ( Jarves $jarves )

Method Details

__construct() public method

public __construct ( Jarves $jarves )
$jarves Jarves\Jarves

addBuilder() public method

public addBuilder ( string $id, Jarves\ORM\Builder\BuildInterface $builder )
$id string
$builder Jarves\ORM\Builder\BuildInterface

addObject() public method

public addObject ( Object $objectDefinition )
$objectDefinition Jarves\Configuration\Object

boot() public method

Checks if at least one orm builder needs a build and triggers the build then.
public boot ( )

bootBuildTime() public method

Loads all objects and
public bootBuildTime ( )

build() public method

Calls build on each builder.
public build ( Symfony\Component\Console\Output\OutputInterface $output = null ) : string
$output Symfony\Component\Console\Output\OutputInterface
return string

getBuilder() public method

public getBuilder ( string $id ) : Jarves\ORM\Builder\BuildInterface
$id string
return Jarves\ORM\Builder\BuildInterface

getJarves() public method

public getJarves ( ) : Jarves
return Jarves\Jarves

getObject() public method

public getObject ( string $objectKey ) : Object
$objectKey string
return Jarves\Configuration\Object

hasObject() public method

public hasObject ( string $objectKey ) : boolean
$objectKey string
return boolean

needsBuild() public method

Returns whether at least one orm builder needs a build.
public needsBuild ( ) : boolean
return boolean

setJarves() public method

public setJarves ( Jarves $jarves )
$jarves Jarves\Jarves

Property Details

$builder protected property

protected BuildInterface[],Jarves\ORM\Builder $builder
return Jarves\ORM\Builder\BuildInterface[]

$jarves protected property

protected Jarves,Jarves $jarves
return Jarves\Jarves

$objects protected property

protected Object[],Jarves\Configuration $objects
return Jarves\Configuration\Object[]