Skip to content

Commit

Permalink
Update phpdocs
Browse files Browse the repository at this point in the history
  • Loading branch information
jacklul committed Jan 30, 2019
1 parent f9a8988 commit 27a4c2e
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
6 changes: 6 additions & 0 deletions src/MagicGetterTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@
*/
trait MagicGetterTrait
{
/**
* @param $method
* @param $args
*
* @return mixed|null
*/
public function __call($method, $args)
{
$property = strtolower(ltrim(preg_replace('/[A-Z]/', '_$0', substr($method, 3)), '_'));
Expand Down
6 changes: 3 additions & 3 deletions src/MasterServer.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ class MasterServer
private $servers = [];

/**
* @param $address
* @param $port
* @param $protocol
* @param string $address
* @param int $port
* @param int $protocol
*/
public function __construct($address, $port, $protocol)
{
Expand Down
4 changes: 2 additions & 2 deletions src/Server.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ class Server
private $status = [];

/**
* @param $address
* @param $port
* @param string $address
* @param int $port
*/
public function __construct($address, $port)
{
Expand Down

0 comments on commit 27a4c2e

Please sign in to comment.