Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64
User : corals ( 1002)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/corals/job-board.corals.io/Corals/modules/Payment/PayPal/Message/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/job-board.corals.io/Corals/modules/Payment/PayPal/Message/RestFetchPlanRequest.php
<?php
/**
 * PayPal REST List Plans Request
 */

namespace Corals\Modules\Payment\PayPal\Message;

/*
 * @link https://developer.paypal.com/docs/api/payments.billing-plans#billing-plans_get
 */

class RestFetchPlanRequest extends AbstractRestRequest
{
    /**
     *
     * Get the request page
     *
     * @return integer
     */

    public function getId()
    {
        return $this->getParameter('id');
    }


    /**
     * Set the request page
     *
     * @param integer $value
     * @return AbstractRestRequest provides a fluent interface.
     */
    public function setId($value)
    {
        return $this->setParameter('id', $value);
    }


    public function getData()
    {
        return array();
    }

    /**
     * Get HTTP Method.
     *
     * The HTTP method for list plans requests must be GET.
     *
     * @return string
     */
    protected function getHttpMethod()
    {
        return 'GET';
    }

    public function getEndpoint()
    {
        return parent::getEndpoint() . '/payments/billing-plans/' . $this->getId();
    }
}

Spamworldpro Mini