Skip to content

Commit

Permalink
Merge pull request #357 from postalservice14/protocol_phpdocs
Browse files Browse the repository at this point in the history
Add PHPDocs to Auto-generated Protocol Classes
  • Loading branch information
postalservice14 committed Feb 12, 2016
2 parents 2270ebc + 08d3c06 commit fe83bc7
Show file tree
Hide file tree
Showing 9 changed files with 1,230 additions and 1,132 deletions.
17 changes: 11 additions & 6 deletions PhpAmqpLib/Helper/Protocol/MethodMap080.php
Expand Up @@ -6,7 +6,9 @@

class MethodMap080
{

/**
* @var array
*/
protected $method_map = array(
'10,10' => 'connection_start',
'10,11' => 'connection_start_ok',
Expand Down Expand Up @@ -103,18 +105,21 @@ class MethodMap080
'120,41' => 'test_content_ok',
);



/**
* @var string
* @return string
*/
public function get_method($method_sig)
{
return $this->method_map[$method_sig];
}



/**
* @var string
* @return boolean
*/
public function valid_method($method_sig)
{
return array_key_exists($method_sig, $this->method_map);
}

}
17 changes: 11 additions & 6 deletions PhpAmqpLib/Helper/Protocol/MethodMap091.php
Expand Up @@ -6,7 +6,9 @@

class MethodMap091
{

/**
* @var array
*/
protected $method_map = array(
'10,10' => 'connection_start',
'10,11' => 'connection_start_ok',
Expand Down Expand Up @@ -74,18 +76,21 @@ class MethodMap091
'85,11' => 'confirm_select_ok',
);



/**
* @var string
* @return string
*/
public function get_method($method_sig)
{
return $this->method_map[$method_sig];
}



/**
* @var string
* @return boolean
*/
public function valid_method($method_sig)
{
return array_key_exists($method_sig, $this->method_map);
}

}

0 comments on commit fe83bc7

Please sign in to comment.