%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/html/o91-api/vendor/nexmo/client/src/Application/
Upload File :
Create Path :
Current File : /var/www/html/o91-api/vendor/nexmo/client/src/Application/Webhook.php

<?php
/**
 * Nexmo Client Library for PHP
 *
 * @copyright Copyright (c) 2016 Nexmo, Inc. (http://nexmo.com)
 * @license   https://github.com/Nexmo/nexmo-php/blob/master/LICENSE.txt MIT License
 */

namespace Nexmo\Application;

class Webhook
{
    const METHOD_POST = 'POST';
    const METHOD_GET  = 'GET';

    /**
     * @var string;
     */
    protected $method;

    /**
     * @var string
     */
    protected $url;
    
    public function __construct($url, $method = self::METHOD_POST)
    {
        $this->url = $url;
        $this->method = $method;
    }

    public function getMethod()
    {
        return $this->method;
    }
    
    public function getUrl()
    {
        return $this->url;
    }
    
    public function __toString()
    {
        return $this->getUrl();
    }
}

Zerion Mini Shell 1.0