public function __construct($ttl, $graceTtl = null, $lockTtl = null) { $this->ttl = (int) $ttl; if (isset($graceTtl)) { $this->graceTtl = (int) $graceTtl; } if (isset($lockTtl)) { $this->lockTtl = (int) $lockTtl; } }