} elseif (empty($key)) {
// Throw IAE
throw new InvalidArgumentException('Parameter "key" is empty');
- } elseif (empty($element)) {
+ } elseif ($element === '') {
// Throw IAE
throw new InvalidArgumentException('Parameter "element" is empty');
}
* @return $isset Whether the given key is set
* @throws InvalidArgumentException If a parameter is not valid
*/
- protected final function isGenericArrayKeySet (string $keyGroup, string $subGroup, $key) {
+ protected final function isGenericArrayKeySet (string $keyGroup, string $subGroup, string $key) {
// Check parameter
if (empty($keyGroup)) {
// Throw IAE
* @return void
* @throws InvalidArgumentException If a parameter is not valid
*/
- protected final function unsetGenericArrayKey (string $keyGroup, string $subGroup, $key) {
+ protected final function unsetGenericArrayKey (string $keyGroup, string $subGroup, string $key) {
// Check parameter
//* NOISY-DEBUG: */ $this->outputLine('[' . __METHOD__ . ':' . __LINE__ . '] keyGroup=' . $keyGroup . ',subGroup=' . $subGroup . ',key=' . $key);
if (empty($keyGroup)) {
} elseif (empty($key)) {
// Throw IAE
throw new InvalidArgumentException('Parameter "key" is empty');
- } elseif (empty($element)) {
+ } elseif ($element === '') {
// Throw IAE
throw new InvalidArgumentException('Parameter "element" is empty');
}
} elseif (empty($key)) {
// Throw IAE
throw new InvalidArgumentException('Parameter "key" is empty');
- } elseif (empty($element)) {
+ } elseif ($element === '') {
// Throw IAE
throw new InvalidArgumentException('Parameter "element" is empty');
}
} elseif (empty($key)) {
// Throw IAE
throw new InvalidArgumentException('Parameter "key" is empty');
- } elseif (empty($element)) {
+ } elseif ($element === '') {
// Throw IAE
throw new InvalidArgumentException('Parameter "element" is empty');
} elseif (($forceInit === false) && ($this->isGenericArrayElementSet($keyGroup, $subGroup, $key, $element))) {
* @return $count Number of array elements
* @throws InvalidArgumentException If a parameter is not valid
*/
- protected final function pushValueToGenericArrayKey (string $keyGroup, string $subGroup, $key, $value) {
+ protected final function pushValueToGenericArrayKey (string $keyGroup, string $subGroup, string $key, $value) {
// Check parameter
//* NOISY-DEBUG: */ if (!is_object($value)) $this->outputLine('[' . __METHOD__ . ':' . __LINE__ . '] keyGroup=' . $keyGroup . ',subGroup=' . $subGroup . ',key=' . $key . ',value[' . gettype($value) . ']=' . print_r($value, true));
if (empty($keyGroup)) {
} elseif (empty($key)) {
// Throw IAE
throw new InvalidArgumentException('Parameter "key" is empty');
- } elseif (empty($element)) {
+ } elseif ($element === '') {
// Throw IAE
throw new InvalidArgumentException('Parameter "element" is empty');
} elseif (!$this->isGenericArrayElementSet($keyGroup, $subGroup, $key, $element)) {
* @throws InvalidArgumentException If a parameter is not valid
* @throws BadMethodCallException If key/sub group isn't there but this method is invoked
*/
- protected final function popGenericArrayElement (string $keyGroup, string $subGroup, $key) {
+ protected final function popGenericArrayElement (string $keyGroup, string $subGroup, string $key) {
// Check parameter
//* NOISY-DEBUG: */ $this->outputLine('[' . __METHOD__ . ':' . __LINE__ . '] keyGroup=' . $keyGroup . ',subGroup=' . $subGroup . ',key=' . $key);
if (empty($keyGroup)) {
* @throws InvalidArgumentException If a parameter is not valid
* @throws BadMethodCallException If key/sub group isn't there but this method is invoked
*/
- protected final function shiftGenericArrayElement (string $keyGroup, string $subGroup, $key) {
+ protected final function shiftGenericArrayElement (string $keyGroup, string $subGroup, string $key) {
// Check parameter
//* NOISY-DEBUG: */ $this->outputLine('[' . __METHOD__ . ':' . __LINE__ . '] keyGroup=' . $keyGroup . ',subGroup=' . $subGroup . ',key=' . $key);
if (empty($keyGroup)) {
* @throws InvalidArgumentException If a parameter is not valid
* @throws BadMethodCallException If key/sub group isn't there but this method is invoked
*/
- protected final function countGenericArrayElements (string $keyGroup, string $subGroup, $key) {
+ protected final function countGenericArrayElements (string $keyGroup, string $subGroup, string $key) {
// Check parameter
//* NOISY-DEBUG: */ $this->outputLine('[' . __METHOD__ . ':' . __LINE__ . '] keyGroup=' . $keyGroup . ',subGroup=' . $subGroup . ',key=' . $key);
if (empty($keyGroup)) {
* @throws InvalidArgumentException If a parameter is not valid
* @throws BadMethodCallException If key/sub group isn't there but this method is invoked
*/
- protected final function setGenericArrayKey (string $keyGroup, string $subGroup, $key, $value) {
+ protected final function setGenericArrayKey (string $keyGroup, string $subGroup, string $key, $value) {
// Check parameters
//* NOISY-DEBUG: */ if (!is_object($value)) $this->outputLine('[' . __METHOD__ . ':' . __LINE__ . '] keyGroup=' . $keyGroup . ',subGroup=' . $subGroup . ',key=' . $key . ',value[' . gettype($value) . ']=' . print_r($value, true));
if (empty($keyGroup)) {
* @throws InvalidArgumentException If a parameter is not valid
* @throws BadMethodCallException If key/sub group isn't there but this method is invoked
*/
- protected final function getGenericArrayKey (string $keyGroup, string $subGroup, $key) {
+ protected final function getGenericArrayKey (string $keyGroup, string $subGroup, string $key) {
// Check parameters
//* NOISY-DEBUG: */ $this->outputLine('[' . __METHOD__ . ':' . __LINE__ . '] keyGroup=' . $keyGroup . ',subGroup=' . $subGroup . ',key=' . $key);
if (empty($keyGroup)) {
} elseif (empty($key)) {
// Throw IAE
throw new InvalidArgumentException('Parameter "key" is empty');
- } elseif (empty($element)) {
+ } elseif ($element === '') {
// Throw IAE
throw new InvalidArgumentException('Parameter "element" is empty');
} elseif (!$this->isGenericArrayElementSet($keyGroup, $subGroup, $key, $element)) {
} elseif (empty($key)) {
// Throw IAE
throw new InvalidArgumentException('Parameter "key" is empty');
- } elseif (empty($element)) {
+ } elseif ($element === '') {
// Throw IAE
throw new InvalidArgumentException('Parameter "element" is empty');
} elseif (!$this->isGenericArrayElementSet($keyGroup, $subGroup, $key, $element)) {
* @param $key Key to check
* @return $isValid Whether given sub group is valid
*/
- protected final function isValidGenericArrayKey (string $keyGroup, string $subGroup, $key) {
+ protected final function isValidGenericArrayKey (string $keyGroup, string $subGroup, string $key) {
// Check parameters
//* NOISY-DEBUG: */ $this->outputLine('[' . __METHOD__ . ':' . __LINE__ . '] keyGroup=' . $keyGroup . ',subGroup=' . $subGroup . ',key=' . $key);
if (empty($keyGroup)) {