for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Yoanm\JsonRpcServerDoc\Domain\Model;
/**
* Class ServerDoc
*/
class ServerDoc
{
/** @var string|null */
private $name;
private $version;
/** @var MethodDoc[] */
private $methodList = [];
/** @var TagDoc[] */
private $tagList = [];
/** @var ErrorDoc[] */
private $serverErrorList = [];
private $globalErrorList = [];
* @param string $name
*
* @return self
public function setName(string $name) : self
$this->name = $name;
return $this;
}
* @param string $version
public function setVersion(string $version) : self
$this->version = $version;
* @param MethodDoc $method
public function addMethod(MethodDoc $method) : self
$this->methodList[] = $method;
* @param TagDoc $tag
public function addTag(TagDoc $tag) : self
$this->tagList[] = $tag;
* @param ErrorDoc $error
public function addServerError(ErrorDoc $error) : self
$this->serverErrorList[] = $error;
public function addGlobalError(ErrorDoc $error) : self
$this->globalErrorList[] = $error;
* @return string|null
public function getName() : ?string
return $this->name;
public function getVersion() : ?string
return $this->version;
* @return MethodDoc[]
public function getMethodList() : array
return $this->methodList;
* @return TagDoc[]
public function getTagList() : array
return $this->tagList;
* @return ErrorDoc[]
public function getServerErrorList() : array
return $this->serverErrorList;
public function getGlobalErrorList() : array
return $this->globalErrorList;