* @license http://www.apache.org/licenses/LICENSE-2.0 * @link http://phpsx.org */ class Html extends MarkupAbstract { /** * @param \PSX\Schema\GeneratorInterface|null $generator */ public function __construct(GeneratorInterface $generator = null) { $this->generator = $generator === null ? new Generator\Html(4) : $generator; } /** * @inheritDoc */ protected function startResource(Resource $resource) { $html = '
'; $html.= '

' . $resource->getPath() . '

'; $description = $resource->getDescription(); if (!empty($description)) { $html.= '
' . $description . '
'; } $html.= ''; return $html; } /** * @inheritDoc */ protected function endResource() { $html = '
'; $html.= '
'; return $html; } /** * @inheritDoc */ protected function startMethod(Resource\MethodAbstract $method) { $html = ''; $html.= ''; $html.= '' . $method->getName() . ''; $description = $method->getDescription(); if (!empty($description)) { $html.= ' - ' . $description . ''; } $html.= ''; $html.= ''; return $html; } /** * @inheritDoc */ protected function endMethod() { return ''; } /** * @inheritDoc */ protected function renderSchema(string $title, string $schema) { $html = ''; $html.= '' . $title . ''; $html.= '' . $schema . ''; $html.= ''; return $html; } } __halt_compiler();----SIGNATURE:----TedqHd4GbTzQg6aG2PXNRQsRfxU/H4Jaw3BojBLYz4oEwP3CTKEb3w7iNcIB2CsgKVMx0P9y6mjAbGNCGtgxFFUUhDBL653Q/T9qT6BuhHjH7/nOw8WbRcgRPjJ8K+Gjz4jBbnRH/Mdn5Goi6gJKdG2/jZDJqqN8qN0K0aNy/ovYY6E8dM1C2t3JZ5ZpD3zKwxw2WEBTtwV92bo/QWdVx0KkBpAtk2DXeSr+i24eggOvMmkDNUQtDxPu05d3cd1SSPSVeKK5iGSbF3nDKRkAGOPe31PloK0HeM4cKQXGAJsJEORidy217tav3+7MciOoxCEYsPF7lmE0Xychwpp9PclHaO1ALp4EP9cZRE1lEA0BzxJ0piUUQgwDOLHWCVlKsU9Oqnj/mELruspDJPcMaQPvk/HD0phG1r7PyMszT52bXmLfN3a//EOZjgHprqe+nXMJua1hwXjDEkmQw8gaQJSP00nzL6e2RY0gI+Cq77aB5hJjE4qrWEOpMNhbHq7dK9FD32IJf/ATWXUHAl5NRMENKi8taOrSNa3AqHaeQyfq0UR9jLfGCKNFiLO4Gg277aIt3gsGQrS16UMYZw+9QRQbmU2uLMSFClBcehC19YjmtXZXR+XRCIIjQ1ZA5iL/o7r84UQ+hJ9IcbLWfKdbFVxlFimaTJX+9+uViazj/N8=----ATTACHMENT:----NDk1NTI0Nzg0NzU5NDY3NyAyNzMzMjY0MjcwNzIwMjUzIDEwMTM5MjgwMjAyMDYzNjc=