for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
*
* This file is part of Aura for PHP.
* @license http://opensource.org/licenses/bsd-license.php BSD
*/
namespace Aura\Filter\Rule\Sanitize;
* Force the value to the current time, default format "Y-m-d H:i:s".
* @package Aura.Filter
class Now
{
* @param object $subject The subject to be filtered.
* @param string $field The subject field name.
* @param mixed $format The date format.
* @return bool Always true.
public function __invoke($subject, $field, $format = 'Y-m-d H:i:s')
$subject->$field = date($format);
return true;
}