Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
Total | |
100.00% |
1 / 1 |
|
100.00% |
3 / 3 |
CRAP | |
100.00% |
5 / 5 |
Repository | |
100.00% |
1 / 1 |
|
100.00% |
3 / 3 |
3 | |
100.00% |
5 / 5 |
__construct | |
100.00% |
1 / 1 |
1 | |
100.00% |
3 / 3 |
|||
repository | |
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
|||
loadEntity | |
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
<?php | |
namespace PHPixie\ORM\Loaders\Loader; | |
abstract class Repository extends \PHPixie\ORM\Loaders\Loader | |
{ | |
protected $repository; | |
public function __construct($loaders, $repository) | |
{ | |
parent::__construct($loaders); | |
$this->repository = $repository; | |
} | |
public function repository() | |
{ | |
return $this->repository; | |
} | |
protected function loadEntity($data) | |
{ | |
return $this->repository->load($data); | |
} | |
} |