for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* FlexiPeeHP - Evidence Full actions.
*
* @author Vítězslav Dvořák <[email protected]>
* @copyright (C) 2019 Spoje.Net
*/
namespace FlexiPeeHP;
* Helper class for work with multiplete documents
class Evidence extends \Ease\Sand
{
* @var FlexiBeeRO
public $engine = null;
* @var array
public $conditions = [];
* @param \FlexiPeeHP\FlexiBeeRO $engine
* @param array $conditions
public function __construct(FlexiBeeRO $engine, array $conditions = [])
$this->engine = $engine;
$this->conditions = $conditions;
}
* Array of objects in eveidence
* @return array
public function getEvidenceData()
return $this->engine->getColumnsFromFlexibee(array_key_exists('detail',
$this->conditions) ? $this->conditions['detail'] : 'full', $this->conditions);
* @return FlexiBeeRO[]
public function getEvidenceObjects()
$contents = [];
foreach ($this->engine->getColumnsFromFlexibee(array_key_exists('detail',
$this->conditions) ? $this->conditions['detail'] : 'full',
$this->conditions) as $pos => $recordData) {
$contents[$pos] = clone $this->engine;
$contents[$pos]->setData($recordData, true);
return $contents;
* get used evidence name
* @return string
public function getEvidence()
return $this->engine->getEvidence();