mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-02-02 23:59:26 +03:00
27 lines
541 B
PHP
27 lines
541 B
PHP
<?php
|
|
|
|
namespace EXSyst\Bundle\ApiDocBundle\Model;
|
|
|
|
use gossi\swagger\Schema;
|
|
|
|
class ModelDescriber
|
|
{
|
|
private $namingStrategy;
|
|
private $models = [];
|
|
|
|
public function __construct(callable $namingStrategy = null)
|
|
{
|
|
if (null === namingStrategy) {
|
|
$namingStrategy = function ($class) {
|
|
return str_replace('\\', '_', $class);
|
|
}
|
|
}
|
|
$this->namingStrategy = $namingStrategy;
|
|
}
|
|
|
|
public function describe(string $class, array $options = []): Schema
|
|
{
|
|
|
|
}
|
|
}
|