src/TransferInitiatorDetails.php
public function SetExpirationMinutes($minutes)
    {
        if ($minutes < 5 || $minutes > 60)
            throw new \InvalidArgumentException('Expiration minutes value of "' . $minutes . '" is not between 5 and 60.');

        $expires = new \DateTime();
        $expires->add(new \DateInterval('PT' . $minutes . 'M'));
        $this->ExpirationTime = $expires->format(DATE_RFC3339);
    }
public function SetExpirationMinutes($minutes)
    {
        if ($minutes < 5 || $minutes > 60)
            throw new \InvalidArgumentException('Expiration minutes value of "' . $minutes . '" is not between 5 and 60.');

        $expires = new \DateTime();
        $expires->add(new \DateInterval('PT' . $minutes . 'M'));
        $this->ExpirationTime = $expires->format(DATE_RFC3339);
    }
public function SetExpirationMinutes ( $ minutes ) { if ( $ minutes < 5 || $ minutes > 60 ) throw new \ InvalidArgumentException ( 'Expiration minutes value of "' . $ minutes . '" is not between 5 and 60.' ) ; $ expires = new \ DateTime ( ) ; $ expires -> add ( new \ DateInterval ( 'PT' . $ minutes . 'M' ) ) ; $ this -> ExpirationTime = $ expires -> format ( DATE_RFC3339 ) ; }
Sets ExpirationTime by adding given amount of minutes to the current
timestamp.
@param int $minutes Must be between 5 and 60
@throws \InvalidArgumentException if minutes not between 5 and 60
Sets ExpirationTime by adding given amount of minutes to the current timestamp .