for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Perry\Representation\Eve\v1;
use \Perry\Representation\Reference as Reference;
use \Perry\Representation\Uri as Uri;
use \Perry\Representation\Base as Base;
class AllianceCollection extends Base
{
public $pageCount;
public $items = [];
public $totalCount;
public $next;
public $previous;
// by Warringer\Types\Long
public function setPageCount($pageCount)
$this->pageCount = $pageCount;
}
// by Warringer\Types\ArrayType
public function setItems($items)
// by Warringer\Types\Dict
$converters = [];
$converters['href'] = function ($value) { return new Reference($value); };
$func = function ($value) use($converters) {
$return = new \ArrayObject($value, \ArrayObject::ARRAY_AS_PROPS);
$return['href'] = isset($value->{'href'}) ? $converters['href']($value->{'href'}) : null;
return $return;
};
foreach ($items as $key => $value) {
$this->items[$key] = $func($value);
public function setTotalCount($totalCount)
$this->totalCount = $totalCount;
// by Warringer\Types\Reference
public function setNext($next)
$this->next = new Reference($next);
public function setPrevious($previous)
$this->previous = new Reference($previous);