changed direct public property access to using getter methods

phpdoc improvements
This commit is contained in:
Steffen Schröder
2014-08-02 22:31:46 +02:00
parent 58a668cf65
commit e560919096
70 changed files with 450 additions and 271 deletions

View File

@ -21,12 +21,13 @@ class PlayerDataManager {
const TYPE_REAL = 'real';
const TYPE_BOOL = 'bool';
const TYPE_ARRAY = 'array';
const ARRAY_DELIMITER = ';;';
/*
* Private Properties
* Private properties
*/
/** @var ManiaControl $maniaControl */
private $maniaControl = null;
private $arrayDelimiter = ';;';
private $metaData = array();
private $storedData = array();
@ -339,7 +340,7 @@ class PlayerDataManager {
return (string)$value;
}
if ($type === self::TYPE_ARRAY) {
return explode($this->arrayDelimiter, $value);
return explode(self::ARRAY_DELIMITER, $value);
}
trigger_error('Unsupported data type. ' . print_r($type, true));
return $value;