for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* FlexiPeeHP - FlexiBee Server Status class.
*
* @author Vítězslav Dvořák <[email protected]>
* @copyright (C) 2016-2017 Spoje.Net
*/
namespace FlexiPeeHP;
* Description of Status
* @author vitex
class Status extends RO
{
* Evidence užitá objektem.
* Evidence used by object
* @link https://demo.flexibee.eu/c/demo/evidence-list Přehled evidencí
* @var string
public $evidence = 'status';
* @link https://demo.flexibee.eu/devdoc/company-identifier Identifikátor firmy
public $company = '';
* Default Line Prefix.
public $prefix = '';
* FlexiBee status
* @param mixed $init mostly ignored
* @param array $options not used at all
public function __construct($init = null, $options = [])
parent::__construct($init, $options);
$this->takeData($this->getFlexiData('/'.$this->evidence));
}
* Return the same response format for one and multiplete results
* @param array $responseRaw
* @return array
public function unifyResponseFormat($responseRaw)
if (array_key_exists('status', $responseRaw)) {
$response = $responseRaw['status'];
} else {
$response = $responseRaw;
return $response;
* Status has no relations
* @return null
public function getVazby($id = null)
throw new \Exception(_('Status has no relations'));