More updates

This commit is contained in:
laf
2015-08-19 22:15:21 +00:00
parent 471c4bacf3
commit bc4f90877c
1250 changed files with 148061 additions and 0 deletions
@@ -0,0 +1,10 @@
<?php
namespace InfluxDB\Database;
/**
* @author Stephen "TheCodeAssassin" Hoogendijk
*/
class Exception extends \InfluxDB\Exception
{
}
@@ -0,0 +1,48 @@
<?php
namespace InfluxDB\Database;
/**
* Class RetentionPolicy
*
* @package InfluxDB\Database
* @author Stephen "TheCodeAssassin" Hoogendijk
*/
class RetentionPolicy
{
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $duration;
/**
* @var int
*/
public $replication;
/**
* @var bool
*/
public $default;
/**
* @param string $name
* @param string $duration
* @param int $replication
* @param bool $default
*
* @todo validate duration, replication
*/
public function __construct($name, $duration = '1d', $replication = 1, $default = false)
{
$this->name = (string) $name;
$this->duration = $duration;
$this->replication = (int) $replication;
$this->default = (bool) $default;
}
}