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\Date;
/**
* DateRangeChronos
* Type for range of dates.
* @package Foundation
* @copyright 2017 Grégoire HUBERT
* @author Miha Vrhovnik
* @license X11 {@link http://opensource.org/licenses/mit-license.php}
class DateRangeChronos extends BaseRange
{
* getRegexp
* @see BaseRange
protected function getRegexp()
return '/([\[\(])"?([0-9\-]+)"?, *"?([0-9\-]+)"?([\]\)])/';
}
* getSubElement
protected function getSubElement($element)
return new Date($element);