for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace SimpleCrud;
use JsonSerializable;
/**
* Represent a null value.
* Used to allow chaining even when the result is null
*/
class NullValue implements JsonSerializable
{
* Magic method to return properties or load them automatically.
*
* @param string $name
public function __get($name)
$name
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.
return new NullValue();
}
* Magic method to store properties.
* @param mixed $value
public function __set($name, $value)
$value
throw new \Exception("No values can be stored in a RowNull");
* Magic method to check if a property is defined or is empty.
* @param string $name Property name
* @return bool
public function __isset($name)
return false;
* Magic method to print the row values (and subvalues).
* @return string
public function __toString()
return "";
* @see JsonSerializable
* @return mixed
public function jsonSerialize()
return null;
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.