Metaphore\Ttl::__construct PHP Method

__construct() public method

public __construct ( $ttl, $graceTtl = null, $lockTtl = null )
    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;
        }
    }