for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* AnimeDb package.
*
* @author Peter Gribanov <[email protected]>
* @copyright Copyright (c) 2011, Peter Gribanov
*/
namespace AnimeDb\SmartSleep\Rule;
trait RandSecondsRuleTrait
{
* @var int
private $seconds = 0;
* @param int $seconds
protected function setSeconds($seconds)
$this->seconds = $seconds;
}
* @return int
public function seconds()
return rand(0, $this->seconds);