Skip to content

Commit

Permalink
Documentation update
Browse files Browse the repository at this point in the history
  • Loading branch information
dcarbone committed Apr 6, 2017
1 parent 75f806d commit d271725
Show file tree
Hide file tree
Showing 28 changed files with 156 additions and 183 deletions.
16 changes: 8 additions & 8 deletions src/ACL/ACLClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
class ACLClient extends AbstractClient
{
/**
* @param ACLEntry $acl
* @param WriteOptions|null $writeOptions
* @param \DCarbone\PHPConsulAPI\ACL\ACLEntry $acl
* @param \DCarbone\PHPConsulAPI\WriteOptions|null $writeOptions
* @return array(
* @type string ACL ID
* @type \DCarbone\PHPConsulAPI\WriteMeta write meta data
Expand All @@ -56,8 +56,8 @@ public function create(ACLEntry $acl, WriteOptions $writeOptions = null)
}

/**
* @param ACLEntry $acl
* @param WriteOptions|null $writeOptions
* @param \DCarbone\PHPConsulAPI\ACL\ACLEntry $acl
* @param \DCarbone\PHPConsulAPI\WriteOptions|null $writeOptions
* @return array(
* @type \DCarbone\PHPConsulAPI\WriteMeta
* @type \DCarbone\PHPConsulAPI\Error|null error, if any
Expand All @@ -78,7 +78,7 @@ public function update(ACLEntry $acl, WriteOptions $writeOptions = null)

/**
* @param string $id
* @param WriteOptions|null $writeOptions
* @param \DCarbone\PHPConsulAPI\WriteOptions|null $writeOptions
* @return array(
* @type \DCarbone\PHPConsulAPI\WriteMeta write meta data
* @type \DCarbone\PHPConsulAPI\Error|null error, if any
Expand All @@ -99,7 +99,7 @@ public function destroy($id, WriteOptions $writeOptions = null)

/**
* @param string $id
* @param WriteOptions|null $writeOptions
* @param \DCarbone\PHPConsulAPI\WriteOptions|null $writeOptions
* @return array(
* @type string cloned ACL id
* @type \DCarbone\PHPConsulAPI\WriteMeta write meta data
Expand Down Expand Up @@ -127,7 +127,7 @@ public function cloneACL($id, WriteOptions $writeOptions = null)

/**
* @param string $id
* @param QueryOptions|null $queryOptions
* @param \DCarbone\PHPConsulAPI\QueryOptions|null $queryOptions
* @return array(
* @type \DCarbone\PHPConsulAPI\ACL\ACLEntry[]|null list of ACL entries corresponding to that ID, or null on error
* @type \DCarbone\PHPConsulAPI\QueryMeta query meta data
Expand Down Expand Up @@ -160,7 +160,7 @@ public function info($id, QueryOptions $queryOptions = null)
}

/**
* @param QueryOptions|null $queryOptions
* @param \DCarbone\PHPConsulAPI\QueryOptions|null $queryOptions
* @return array(
* @type \DCarbone\PHPConsulAPI\ACL\ACLEntry[] acl entries or null on error
* @type \DCarbone\PHPConsulAPI\QueryMeta query meta data
Expand Down
16 changes: 8 additions & 8 deletions src/Agent/AgentCheck.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public function getNode()

/**
* @param string $Node
* @return AgentCheck
* @return \DCarbone\PHPConsulAPI\Agent\AgentCheck
*/
public function setNode($Node)
{
Expand All @@ -69,7 +69,7 @@ public function getCheckID()

/**
* @param string $CheckID
* @return AgentCheck
* @return \DCarbone\PHPConsulAPI\Agent\AgentCheck
*/
public function setCheckID($CheckID)
{
Expand All @@ -87,7 +87,7 @@ public function getName()

/**
* @param string $Name
* @return AgentCheck
* @return \DCarbone\PHPConsulAPI\Agent\AgentCheck
*/
public function setName($Name)
{
Expand All @@ -105,7 +105,7 @@ public function getStatus()

/**
* @param string $Status
* @return AgentCheck
* @return \DCarbone\PHPConsulAPI\Agent\AgentCheck
*/
public function setStatus($Status)
{
Expand All @@ -123,7 +123,7 @@ public function getNotes()

/**
* @param string $Notes
* @return AgentCheck
* @return \DCarbone\PHPConsulAPI\Agent\AgentCheck
*/
public function setNotes($Notes)
{
Expand All @@ -141,7 +141,7 @@ public function getOutput()

/**
* @param string $Output
* @return AgentCheck
* @return \DCarbone\PHPConsulAPI\Agent\AgentCheck
*/
public function setOutput($Output)
{
Expand All @@ -159,7 +159,7 @@ public function getServiceID()

/**
* @param string $ServiceID
* @return AgentCheck
* @return \DCarbone\PHPConsulAPI\Agent\AgentCheck
*/
public function setServiceID($ServiceID)
{
Expand All @@ -177,7 +177,7 @@ public function getServiceName()

/**
* @param string $ServiceName
* @return AgentCheck
* @return \DCarbone\PHPConsulAPI\Agent\AgentCheck
*/
public function setServiceName($ServiceName)
{
Expand Down
8 changes: 4 additions & 4 deletions src/Agent/AgentCheckRegistration.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public function getID()

/**
* @param string $ID
* @return AgentCheckRegistration
* @return \DCarbone\PHPConsulAPI\Agent\AgentCheckRegistration
*/
public function setID($ID)
{
Expand All @@ -59,7 +59,7 @@ public function getName()

/**
* @param string $Name
* @return AgentCheckRegistration
* @return \DCarbone\PHPConsulAPI\Agent\AgentCheckRegistration
*/
public function setName($Name)
{
Expand All @@ -77,7 +77,7 @@ public function getNotes()

/**
* @param string $Notes
* @return AgentCheckRegistration
* @return \DCarbone\PHPConsulAPI\Agent\AgentCheckRegistration
*/
public function setNotes($Notes)
{
Expand All @@ -95,7 +95,7 @@ public function getServiceID()

/**
* @param string $ServiceID
* @return AgentCheckRegistration
* @return \DCarbone\PHPConsulAPI\Agent\AgentCheckRegistration
*/
public function setServiceID($ServiceID)
{
Expand Down
4 changes: 2 additions & 2 deletions src/Agent/AgentCheckUpdate.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public function getStatus()

/**
* @param string $Status
* @return AgentCheckUpdate
* @return \DCarbone\PHPConsulAPI\Agent\AgentCheckUpdate
*/
public function setStatus($Status)
{
Expand All @@ -57,7 +57,7 @@ public function getOutput()

/**
* @param string $Output
* @return AgentCheckUpdate
* @return \DCarbone\PHPConsulAPI\Agent\AgentCheckUpdate
*/
public function setOutput($Output)
{
Expand Down
14 changes: 10 additions & 4 deletions src/Agent/AgentClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,11 @@ public function members()
/**
* Register a service within Consul
*
* @param AgentServiceRegistration $agentServiceRegistration
* @return \DCarbone\PHPConsulAPI\Error|null
* @param \DCarbone\PHPConsulAPI\Agent\AgentServiceRegistration $agentServiceRegistration
* @return array (
* @type \DCarbone\PHPConsulAPI\Agent\AgentServiceRegistration $agentServiceRegistration
* @type \DCarbone\PHPConsulAPI\Error|null
* )
*/
public function serviceRegister(AgentServiceRegistration $agentServiceRegistration)
{
Expand Down Expand Up @@ -248,8 +251,11 @@ public function updateTTL($checkID, $output, $status)
}

/**
* @param AgentCheckRegistration $agentCheckRegistration
* @return \DCarbone\PHPConsulAPI\Error|null
* @param \DCarbone\PHPConsulAPI\Agent\AgentCheckRegistration $agentCheckRegistration
* @return array (
* @type \DCarbone\PHPConsulAPI\Agent\AgentCheckRegistration $agentCheckRegistration
* @type \DCarbone\PHPConsulAPI\Error|null
* )
*/
public function checkRegister(AgentCheckRegistration $agentCheckRegistration)
{
Expand Down
18 changes: 9 additions & 9 deletions src/Agent/AgentServiceCheck.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public function getScript()

/**
* @param string $Script
* @return AgentServiceCheck
* @return \DCarbone\PHPConsulAPI\Agent\AgentServiceCheck
*/
public function setScript($Script)
{
Expand All @@ -71,7 +71,7 @@ public function getDockerContainerID()

/**
* @param string $DockerContainerID
* @return AgentServiceCheck
* @return \DCarbone\PHPConsulAPI\Agent\AgentServiceCheck
*/
public function setDockerContainerID($DockerContainerID)
{
Expand All @@ -89,7 +89,7 @@ public function getShell()

/**
* @param string $Shell
* @return AgentServiceCheck
* @return \DCarbone\PHPConsulAPI\Agent\AgentServiceCheck
*/
public function setShell($Shell)
{
Expand All @@ -107,7 +107,7 @@ public function getInterval()

/**
* @param string $Interval
* @return AgentServiceCheck
* @return \DCarbone\PHPConsulAPI\Agent\AgentServiceCheck
*/
public function setInterval($Interval)
{
Expand All @@ -125,7 +125,7 @@ public function getTimeout()

/**
* @param string $Timeout
* @return AgentServiceCheck
* @return \DCarbone\PHPConsulAPI\Agent\AgentServiceCheck
*/
public function setTimeout($Timeout)
{
Expand All @@ -143,7 +143,7 @@ public function getTTL()

/**
* @param string $TTL
* @return AgentServiceCheck
* @return \DCarbone\PHPConsulAPI\Agent\AgentServiceCheck
*/
public function setTTL($TTL)
{
Expand All @@ -161,7 +161,7 @@ public function getHTTP()

/**
* @param string $HTTP
* @return AgentServiceCheck
* @return \DCarbone\PHPConsulAPI\Agent\AgentServiceCheck
*/
public function setHTTP($HTTP)
{
Expand All @@ -179,7 +179,7 @@ public function getTCP()

/**
* @param string $TCP
* @return AgentServiceCheck
* @return \DCarbone\PHPConsulAPI\Agent\AgentServiceCheck
*/
public function setTCP($TCP)
{
Expand All @@ -197,7 +197,7 @@ public function getStatus()

/**
* @param string $Status
* @return AgentServiceCheck
* @return \DCarbone\PHPConsulAPI\Agent\AgentServiceCheck
*/
public function setStatus($Status)
{
Expand Down
14 changes: 7 additions & 7 deletions src/Agent/AgentServiceRegistration.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public function getID()

/**
* @param string $ID
* @return AgentServiceRegistration
* @return \DCarbone\PHPConsulAPI\Agent\AgentServiceRegistration
*/
public function setID($ID)
{
Expand All @@ -96,7 +96,7 @@ public function getName()

/**
* @param string $Name
* @return AgentServiceRegistration
* @return \DCarbone\PHPConsulAPI\Agent\AgentServiceRegistration
*/
public function setName($Name)
{
Expand All @@ -114,7 +114,7 @@ public function getPort()

/**
* @param int $Port
* @return AgentServiceRegistration
* @return \DCarbone\PHPConsulAPI\Agent\AgentServiceRegistration
*/
public function setPort($Port)
{
Expand All @@ -132,7 +132,7 @@ public function getAddress()

/**
* @param string $Address
* @return AgentServiceRegistration
* @return \DCarbone\PHPConsulAPI\Agent\AgentServiceRegistration
*/
public function setAddress($Address)
{
Expand All @@ -150,7 +150,7 @@ public function isEnableTagOverride()

/**
* @param boolean $EnableTagOverride
* @return AgentServiceRegistration
* @return \DCarbone\PHPConsulAPI\Agent\AgentServiceRegistration
*/
public function setEnableTagOverride($EnableTagOverride)
{
Expand All @@ -168,7 +168,7 @@ public function getCheck()

/**
* @param \DCarbone\PHPConsulAPI\Agent\AgentCheck $Check
* @return AgentServiceRegistration
* @return \DCarbone\PHPConsulAPI\Agent\AgentServiceRegistration
*/
public function setCheck(AgentCheck $Check)
{
Expand All @@ -186,7 +186,7 @@ public function getChecks()

/**
* @param \DCarbone\PHPConsulAPI\Agent\AgentCheck[] $Checks
* @return AgentServiceRegistration
* @return \DCarbone\PHPConsulAPI\Agent\AgentServiceRegistration
*/
public function setChecks(array $Checks)
{
Expand Down
4 changes: 2 additions & 2 deletions src/Catalog/CatalogClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
class CatalogClient extends AbstractClient
{
/**
* @param CatalogRegistration $catalogRegistration
* @param \DCarbone\PHPConsulAPI\Catalog\CatalogRegistration $catalogRegistration
* @param \DCarbone\PHPConsulAPI\WriteOptions|null $writeOptions
* @return array(
* @type \DCarbone\PHPConsulAPI\WriteMeta write meta data
Expand All @@ -48,7 +48,7 @@ public function register(CatalogRegistration $catalogRegistration, WriteOptions
}

/**
* @param CatalogDeregistration $catalogDeregistration
* @param \DCarbone\PHPConsulAPI\Catalog\CatalogDeregistration $catalogDeregistration
* @param \DCarbone\PHPConsulAPI\WriteOptions|null $writeOptions
* @return array(
* @type \DCarbone\PHPConsulAPI\WriteMeta write meta data
Expand Down
Loading

0 comments on commit d271725

Please sign in to comment.