| Total Complexity | 7 |
| Total Lines | 62 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 20 | class Evidence extends Sand |
||
| 21 | { |
||
| 22 | /** |
||
| 23 | * |
||
| 24 | * @var RO |
||
| 25 | */ |
||
| 26 | public $engine = null; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * |
||
| 30 | * @var array |
||
| 31 | */ |
||
| 32 | public $conditions = []; |
||
| 33 | |||
| 34 | /** |
||
| 35 | * |
||
| 36 | * @param RO $engine |
||
| 37 | * |
||
| 38 | * @param array $conditions |
||
| 39 | */ |
||
| 40 | public function __construct(RO $engine, array $conditions = []) |
||
| 41 | { |
||
| 42 | $this->engine = $engine; |
||
| 43 | $this->conditions = $conditions; |
||
| 44 | } |
||
| 45 | |||
| 46 | /** |
||
| 47 | * Array of objects in eveidence |
||
| 48 | * |
||
| 49 | * @return array |
||
| 50 | */ |
||
| 51 | public function getEvidenceData() |
||
| 52 | { |
||
| 53 | return $this->engine->getColumnsFromAbraFlexi(array_key_exists('detail', |
||
| 54 | $this->conditions) ? $this->conditions['detail'] : 'full', $this->conditions); |
||
| 55 | } |
||
| 56 | |||
| 57 | /** |
||
| 58 | * Array of objects in eveidence |
||
| 59 | * |
||
| 60 | * @return RO[] |
||
| 61 | */ |
||
| 62 | public function getEvidenceObjects() |
||
| 72 | } |
||
| 73 | |||
| 74 | /** |
||
| 75 | * get used evidence name |
||
| 76 | * |
||
| 77 | * @return string |
||
| 78 | */ |
||
| 79 | public function getEvidence() |
||
| 82 | } |
||
| 83 | } |
||
| 84 |