for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Schema Class for output data.
*/
namespace Graviton\AnalyticsBundle\Model;
* Schema
*
* @author List of contributors <https://github.com/libgraviton/graviton/graphs/contributors>
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @link http://swisscom.ch
class AnalyticModel
{
protected $collection;
protected $route;
protected $aggregate;
protected $schema;
protected $type;
* String collection
* @return mixed
public function getCollection()
return $this->collection;
}
* Set value of collection
* @param mixed $collection string name
* @return void
public function setCollection($collection)
$this->collection = $collection;
* Route path
public function getRoute()
return $this->route;
* Set path
* @param mixed $route string route
public function setRoute($route)
$this->route = $route;
* Mongodb Aggregates
public function getAggregate()
return $this->aggregate ?: [];
* Set mongodb query
* @param mixed $aggregate object type for query data
public function setAggregate($aggregate)
$this->aggregate = $aggregate;
* Schema for response
public function getSchema()
return $this->schema;
* Schema data
* @param mixed $schema object schema
public function setSchema($schema)
$this->schema = $schema;
* Type of response data
public function getType()
return $this->type;
* Type for representation
* @param mixed $type string view
public function setType($type)
$this->type = $type;