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]
* @var array
private $settings = [];
* [settings Inherited settings]
* @return void
public function settings(array $settings)
$this->settings = $settings;
}
* [headerMethods]
public function headerMethods()
$headers = new headers\header;
$headers->setOptions($this->responsible->options);
responsible
responsible\service\endpoints\mock
$headers->setAllowedMethods(
['GET', 'POST']
);
* [register]
* @return array
public function register()
return array(
'/mock',
'/mock/{mockId}',
'/mock/{mockId}/post',
'/mock/{mockId}/public',
* [scope Routing scope access]
* @return string
public function scope()
return [
return array('private', ...'private', 'anonymous')
array<integer,string>
string
'private',
'anonymous',
];
* [run Run the method request]
public function run()
return ['mock_run' => [
'passed' => true
]];