mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-02-02 15:51:48 +03:00
remove unused cache annotation param
This commit is contained in:
parent
990b781322
commit
5db963666a
@ -125,11 +125,6 @@ class ApiDoc
|
||||
*/
|
||||
private $route;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
private $cache;
|
||||
|
||||
/**
|
||||
* @var bool
|
||||
*/
|
||||
@ -257,10 +252,6 @@ class ApiDoc
|
||||
}
|
||||
}
|
||||
|
||||
if (isset($data['cache'])) {
|
||||
$this->setCache($data['cache']);
|
||||
}
|
||||
|
||||
if (isset($data['section'])) {
|
||||
$this->section = $data['section'];
|
||||
}
|
||||
@ -513,22 +504,6 @@ class ApiDoc
|
||||
$this->host = $host;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return int
|
||||
*/
|
||||
public function getCache()
|
||||
{
|
||||
return $this->cache;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param int $cache
|
||||
*/
|
||||
public function setCache($cache): void
|
||||
{
|
||||
$this->cache = (int) $cache;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return bool
|
||||
*/
|
||||
@ -661,10 +636,6 @@ class ApiDoc
|
||||
$data['section'] = $section;
|
||||
}
|
||||
|
||||
if ($cache = $this->cache) {
|
||||
$data['cache'] = $cache;
|
||||
}
|
||||
|
||||
if ($tags = $this->tags) {
|
||||
$data['tags'] = $tags;
|
||||
}
|
||||
|
@ -203,18 +203,6 @@ class ApiDocTest extends TestCase
|
||||
}
|
||||
}
|
||||
|
||||
public function testConstructWithCache(): void
|
||||
{
|
||||
$data = [
|
||||
'cache' => '60',
|
||||
];
|
||||
|
||||
$annot = new ApiDoc($data);
|
||||
$array = $annot->toArray();
|
||||
|
||||
$this->assertEquals($data['cache'], $array['cache']);
|
||||
}
|
||||
|
||||
public function testConstructWithRequirements(): void
|
||||
{
|
||||
$data = [
|
||||
|
Loading…
x
Reference in New Issue
Block a user