src/Genesis/API/Request/WPF/Create.php
public function setLifetime($lifetime)
    {
        $lifetime = intval($lifetime);

        if ($lifetime < 1 || $lifetime > 44640) {
            throw new InvalidArgument('Valid value ranges between 1 minute and 31 days given in minutes');
        }

        $this->lifetime = $lifetime;

        return $this;
    }
public function setLifetime($lifetime)
    {
        $lifetime = intval($lifetime);

        if ($lifetime < 1 || $lifetime > 44640) {
            throw new InvalidArgument('Valid value ranges between 1 minute and 31 days given in minutes');
        }

        $this->lifetime = $lifetime;

        return $this;
    }
public function setLifetime ( $ lifetime ) { $ lifetime = intval ( $ lifetime ) ; if ( $ lifetime < 1 || $ lifetime > 44640 ) { throw new InvalidArgument ( 'Valid value ranges between 1 minute and 31 days given in minutes' ) ; } $ this -> lifetime = $ lifetime ; return $ this ; }
Number of minutes determining how long the WPF will be valid.
Will be set to 30 minutes by default.
Valid value ranges between 1 minute and 31 days given in minutes
@param int $lifetime
@throws InvalidArgument
@return $this
Number of minutes determining how long the WPF will be valid . Will be set to 30 minutes by default . Valid value ranges between 1 minute and 31 days given in minutes