phpdoc & formatting improvements
This commit is contained in:
@ -2,28 +2,40 @@
|
||||
|
||||
namespace ManiaControl\Callbacks\Structures;
|
||||
|
||||
|
||||
use ManiaControl\ManiaControl;
|
||||
use ManiaControl\Players\Player;
|
||||
|
||||
class CaptureStructure {
|
||||
/*
|
||||
* Private properties
|
||||
*/
|
||||
private $playerArray;
|
||||
/** @var ManiaControl $maniaControl */
|
||||
private $maniaControl;
|
||||
|
||||
public function __construct(ManiaControl $maniaControl, $data) {
|
||||
/**
|
||||
* Construct a new Capture Structure
|
||||
*
|
||||
* @param ManiaControl $maniaControl
|
||||
* @param array $data
|
||||
*/
|
||||
public function __construct(ManiaControl $maniaControl, array $data) {
|
||||
$this->maniaControl = $maniaControl;
|
||||
$this->playerArray = $data;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return mixed
|
||||
* Get the logins
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function getLoginArray() {
|
||||
return $this->playerArray;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the players
|
||||
*
|
||||
* @return Player[]
|
||||
*/
|
||||
public function getPlayerArray() {
|
||||
@ -33,4 +45,4 @@ class CaptureStructure {
|
||||
}
|
||||
return $playerArray;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user