mirror of
https://github.com/JeroenED/libpairtwo.git
synced 2024-11-24 23:37:41 +01:00
Replace $Key with $key and $Value with $value
This commit is contained in:
parent
9e48bc1ff1
commit
9859984a2a
@ -40,9 +40,9 @@ class Game
|
||||
/** @var int */
|
||||
public $Board;
|
||||
|
||||
public function __get(string $Key)
|
||||
public function __get(string $key)
|
||||
{
|
||||
if ($Key == 'Result') {
|
||||
if ($key == 'Result') {
|
||||
return $this->calculateResult();
|
||||
}
|
||||
}
|
||||
|
@ -257,13 +257,13 @@ class Player
|
||||
/**
|
||||
* Returns binary data that was read out the pairing file but was not needed immediately
|
||||
*
|
||||
* @param string $Key
|
||||
* @param string $key
|
||||
* @return bool|DateTime|int|string|null
|
||||
*/
|
||||
public function __get(string $Key)
|
||||
public function __get(string $key)
|
||||
{
|
||||
if (isset($this->BinaryData[$Key])) {
|
||||
return $this->BinaryData[$Key];
|
||||
if (isset($this->BinaryData[$key])) {
|
||||
return $this->BinaryData[$key];
|
||||
}
|
||||
return null;
|
||||
}
|
||||
@ -271,11 +271,11 @@ class Player
|
||||
/**
|
||||
* Sets binary data that is read out the pairing file but is not needed immediately
|
||||
*
|
||||
* @param string $Key
|
||||
* @param bool|int|DateTime|string $Value
|
||||
* @param string $key
|
||||
* @param bool|int|DateTime|string $Valueey
|
||||
*/
|
||||
public function __set(string $Key, $Value): void
|
||||
public function __set(string $key, $Valueey): void
|
||||
{
|
||||
$this->BinaryData[$Key] = $Value;
|
||||
$this->BinaryData[$key] = $Valueey;
|
||||
}
|
||||
}
|
||||
|
@ -57,13 +57,13 @@ class Pairtwo6 implements ReaderInterface
|
||||
/**
|
||||
* Returns binary data that was read out the pairtwo file but was not needed immediately
|
||||
*
|
||||
* @param string $Key
|
||||
* @param string $key
|
||||
* @return bool|DateTime|int|string|null
|
||||
*/
|
||||
public function __get(string $Key)
|
||||
public function __get(string $key)
|
||||
{
|
||||
if (isset($this->BinaryData[$Key])) {
|
||||
return $this->BinaryData[$Key];
|
||||
if (isset($this->BinaryData[$key])) {
|
||||
return $this->BinaryData[$key];
|
||||
}
|
||||
return null;
|
||||
}
|
||||
@ -71,12 +71,12 @@ class Pairtwo6 implements ReaderInterface
|
||||
/**
|
||||
* Sets binary data that is read out the pairtwo file but is not needed immediately
|
||||
*
|
||||
* @param string $Key
|
||||
* @param bool|int|DateTime|string $Value
|
||||
* @param string $key
|
||||
* @param bool|int|DateTime|string $Valueey
|
||||
*/
|
||||
public function __set(string $Key, $Value): void
|
||||
public function __set(string $key, $Valueey): void
|
||||
{
|
||||
$this->BinaryData[$Key] = $Value;
|
||||
$this->BinaryData[$key] = $Valueey;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -562,13 +562,13 @@ class Swar4 implements ReaderInterface
|
||||
/**
|
||||
* Returns binary data that was read out the swar file but was not needed immediately
|
||||
*
|
||||
* @param string $Key
|
||||
* @param string $key
|
||||
* @return bool|DateTime|int|string|null
|
||||
*/
|
||||
public function __get(string $Key)
|
||||
public function __get(string $key)
|
||||
{
|
||||
if (isset($this->BinaryData[$Key])) {
|
||||
return $this->BinaryData[$Key];
|
||||
if (isset($this->BinaryData[$key])) {
|
||||
return $this->BinaryData[$key];
|
||||
}
|
||||
return null;
|
||||
}
|
||||
@ -576,12 +576,12 @@ class Swar4 implements ReaderInterface
|
||||
/**
|
||||
* Sets binary data that is read out the swar file but is not needed immediately
|
||||
*
|
||||
* @param string $Key
|
||||
* @param bool|int|DateTime|string $Value
|
||||
* @param string $key
|
||||
* @param bool|int|DateTime|string $Valueey
|
||||
*/
|
||||
public function __set(string $Key, $Value): void
|
||||
public function __set(string $key, $Valueey): void
|
||||
{
|
||||
$this->BinaryData[$Key] = $Value;
|
||||
$this->BinaryData[$key] = $Valueey;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -822,13 +822,13 @@ class Tournament
|
||||
/**
|
||||
* Returns binary data that was read out the pairing file but was not needed immediately
|
||||
*
|
||||
* @param string $Key
|
||||
* @param string $key
|
||||
* @return bool|DateTime|int|string|null
|
||||
*/
|
||||
public function __get(string $Key)
|
||||
public function __get(string $key)
|
||||
{
|
||||
if (isset($this->BinaryData[$Key])) {
|
||||
return $this->BinaryData[$Key];
|
||||
if (isset($this->BinaryData[$key])) {
|
||||
return $this->BinaryData[$key];
|
||||
}
|
||||
return null;
|
||||
}
|
||||
@ -836,12 +836,12 @@ class Tournament
|
||||
/**
|
||||
* Sets binary data that is read out the pairing file but is not needed immediately
|
||||
*
|
||||
* @param string $Key
|
||||
* @param bool|int|DateTime|string $Value
|
||||
* @param string $key
|
||||
* @param bool|int|DateTime|string $Valueeyey
|
||||
* @return void
|
||||
*/
|
||||
public function __set(string $Key, $Value): void
|
||||
public function __set(string $key, $Valueey): void
|
||||
{
|
||||
$this->BinaryData[$Key] = $Value;
|
||||
$this->BinaryData[$key] = $Valueey;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user