for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Basster\Silex\Provider\Swagger;
class SwaggerConfig
{
/** @var mixed */
private $analyser;
private $analysis;
/** @var array */
private $processors = [];
private $exclude;
/** @var string */
private $basePath;
/**
* SwaggerConfig constructor.
*
* @param string $basePath
* @param mixed $analyser
* @param mixed $analysis
* @param array $processors
* @param mixed $exclude
*/
public function __construct(
$basePath,
$analyser = null,
$analysis = null,
array $processors = [],
$exclude = null
) {
$this->analyser = $analyser;
$this->analysis = $analysis;
$this->processors = $processors;
$this->exclude = $exclude;
$this->basePath = $basePath;
}
* @return $this
public function setAnalyser($analyser)
return $this;
public function setAnalysis($analysis)
public function setProcessors($processors)
public function setExclude($exclude)
public function getScanOptions()
$scanOptions = [];
$properties = ['exclude', 'analyser', 'analysis', 'processors'];
foreach ($properties as $property) {
if ($this->$property) {
$scanOptions[$property] = $this->$property;
return $scanOptions;
* @return string
public function getBasePath()
return $this->basePath;