for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of PommProject's Foundation package.
*
* (c) 2014 Grégoire HUBERT <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace PommProject\Foundation\Converter\Type;
use Cake\Chronos\Chronos;
/**
* TsRangeChronos
* Type for range of timestamps.
* @package Foundation
* @copyright 2017 Grégoire HUBERT
* @author Miha Vrhovnik
* @license X11 {@link http://opensource.org/licenses/mit-license.php}
class TsRangeChronos extends BaseRange
{
* getRegexp
* @see BaseRange
protected function getRegexp()
return '/([\[\(])"?([0-9 :+\.-]+)"?, *"?([0-9 :+\.-]+)"?([\]\)])/';
}
* getSubElement
protected function getSubElement($element)
return new Chronos($element);