Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

Commit

Permalink
Merge pull request zendframework/zendframework#2144 from PHPGangsta/f…
Browse files Browse the repository at this point in the history
…ixes/phpdocClassesAndNamespaces

fixed a lot of phpDoc comments
  • Loading branch information
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 23 deletions.
1 change: 0 additions & 1 deletion src/Expr.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ class Expr
* Constructor
*
* @param string $expression the expression to hold.
* @return void
*/
public function __construct($expression)
{
Expand Down
1 change: 0 additions & 1 deletion src/Server/Error.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ class Error
* @param string $message
* @param int $code
* @param mixed $data
* @return void
*/
public function __construct($message = null, $code = -32000, $data = null)
{
Expand Down
1 change: 0 additions & 1 deletion src/Server/Request/Http.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ class Http extends JsonRequest
*
* Pull JSON request from raw POST body and use to populate request.
*
* @return void
*/
public function __construct()
{
Expand Down
6 changes: 3 additions & 3 deletions src/Server/Response.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class Response

/**
* Service map
* @var Smd\Smd
* @var Smd
*/
protected $serviceMap;

Expand Down Expand Up @@ -248,7 +248,7 @@ public function setArgs($args)
/**
* Set service map object
*
* @param Smd\Smd $serviceMap
* @param Smd $serviceMap
* @return Response
*/
public function setServiceMap($serviceMap)
Expand All @@ -260,7 +260,7 @@ public function setServiceMap($serviceMap)
/**
* Retrieve service map
*
* @return Smd\Smd|null
* @return Smd|null
*/
public function getServiceMap()
{
Expand Down
26 changes: 13 additions & 13 deletions src/Server/Smd.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ class Smd
* Set object state via options
*
* @param array $options
* @return Zend\Json\Server\Smd
* @return Smd
*/
public function setOptions(array $options)
{
Expand All @@ -114,7 +114,7 @@ public function setOptions(array $options)
* Set transport
*
* @param string $transport
* @return Zend\Json\Server\Smd
* @return \Zend\Json\Server\Smd
*/
public function setTransport($transport)
{
Expand All @@ -139,7 +139,7 @@ public function getTransport()
* Set envelope
*
* @param string $envelopeType
* @return Zend\Json\Server\Smd
* @return Smd
*/
public function setEnvelope($envelopeType)
{
Expand All @@ -165,7 +165,7 @@ public function getEnvelope()
* Set content type
*
* @param string $type
* @return Zend\Json\Server\Smd
* @return \Zend\Json\Server\Smd
*/
public function setContentType($type)
{
Expand All @@ -190,7 +190,7 @@ public function getContentType()
* Set service target
*
* @param string $target
* @return Zend\Json\Server\Smd
* @return Smd
*/
public function setTarget($target)
{
Expand All @@ -212,7 +212,7 @@ public function getTarget()
* Set service ID
*
* @param string $Id
* @return Zend\Json\Server\Smd
* @return Smd
*/
public function setId($id)
{
Expand All @@ -234,7 +234,7 @@ public function getId()
* Set service description
*
* @param string $description
* @return Zend\Json\Server\Smd
* @return Smd
*/
public function setDescription($description)
{
Expand All @@ -256,7 +256,7 @@ public function getDescription()
* Indicate whether or not to generate Dojo-compatible SMD
*
* @param bool $flag
* @return Zend\Json\Server\Smd
* @return Smd
*/
public function setDojoCompatible($flag)
{
Expand All @@ -277,8 +277,8 @@ public function isDojoCompatible()
/**
* Add Service
*
* @param Zend\Json\Server\Smd\Service|array $service
* @return void
* @param Smd\Service|array $service
* @return Smd
*/
public function addService($service)
{
Expand All @@ -302,7 +302,7 @@ public function addService($service)
* Add many services
*
* @param array $services
* @return Zend\Json\Server\Smd
* @return Smd
*/
public function addServices(array $services)
{
Expand All @@ -316,7 +316,7 @@ public function addServices(array $services)
* Overwrite existing services with new ones
*
* @param array $services
* @return Zend\Json\Server\Smd
* @return Smd
*/
public function setServices(array $services)
{
Expand All @@ -328,7 +328,7 @@ public function setServices(array $services)
* Get service object
*
* @param string $name
* @return false|Zend\Json\Server\Smd\Service
* @return boolean|Smd\Service
*/
public function getService($name)
{
Expand Down
8 changes: 4 additions & 4 deletions src/Server/Smd/Service.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,6 @@ class Service
* Constructor
*
* @param string|array $spec
* @return void
* @throws Zend\Json\Server\Exception\InvalidArgumentException if no name provided
*/
public function __construct($spec)
Expand Down Expand Up @@ -428,9 +427,10 @@ public function __toString()
/**
* Validate parameter type
*
* @param string $type
* @return true
* @throws Zend\Json\Server\Exception
* @param string $type
* @param boolean $isReturn
* @return string
* @throws InvalidArgumentException
*/
protected function _validateParamType($type, $isReturn = false)
{
Expand Down

0 comments on commit 8474496

Please sign in to comment.