for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* ASSETS ENDPOINT CLASS
*
*/
namespace responsible\service\endpoints;
use responsible\core\headers;
use responsible\service\interfaces;
use responsible\core\exception;
class mock implements interfaces\endpointsInterface
{
* [settings Inherited settings]
* @return [void]
[void]
0
public function settings(array $settings)
$this->settings = $settings;
settings
}
* [headerMethods]
public function headerMethods()
$headers = new headers\header;
$headers->setAllowedMethods(
['GET', 'POST']
);
* [register]
* @return [array]
[array]
public function register()
return array(
'/mock',
'/mock/{mockId}',
* [scope Routing scope access]
* @return [string]
[string]
public function scope()
return 'private';
* [run Run the method request]
public function run()
return [];