ExtendedApiEndpoint.php 657 Bytes
<?php
/**
 * Created by PhpStorm.
 * User: Alex Savenko
 * Date: 14.02.2017
 * Time: 16:15
 */

namespace App\Mvc;


use PhalconRest\Api\ApiEndpoint;

class ExtendedApiEndpoint extends ApiEndpoint {

    protected $exampleRequest;

    /**
     * @param string $exampleRequest Example of the request of the endpoint
     *
     * @return $this
     */
    public function exampleRequest($exampleRequest)
    {
        $this->exampleRequest = $exampleRequest;
        return $this;
    }

    /**
     * @return string Example of the request of the endpoint
     */
    public function getExampleRequest()
    {
        return $this->exampleRequest;
    }

}