for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Yoanm\JsonRpcServerDoc\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 $methodErrorList = [];
* @param string $name
*
* @return ServerDoc
public function setName(string $name) : ServerDoc
$this->name = $name;
return $this;
}
* @param string $version
public function setVersion(string $version) : ServerDoc
$this->version = $version;
* @param MethodDoc $method
public function addMethod(MethodDoc $method) : ServerDoc
$this->methodList[] = $method;
* @param MethodDoc[] $methodList
public function setMethodList(array $methodList) : ServerDoc
$this->methodList = $methodList;
* @param TagDoc $tag
public function addTag(TagDoc $tag) : ServerDoc
$this->tagList[] = $tag;
* @param ErrorDoc $error
public function addServerError(ErrorDoc $error) : ServerDoc
$this->serverErrorList[] = $error;
public function addMethodError(ErrorDoc $error) : ServerDoc
$this->methodErrorList[] = $error;
* @return null|string
public function getName()
return $this->name;
public function getVersion()
return $this->version;
* @return MethodDoc[]
public function getMethodList() : array
return $this->methodList;
* @return TagDoc[]
public function getTagList()
return $this->tagList;
* @return ErrorDoc[]
public function getServerErrorList()
return $this->serverErrorList;
public function getMethodErrorList()
return $this->methodErrorList;