Example:
<?php
$instance = new Neuron(stringValue: 'Hello world', integerValue: 50,
boolValue: false);
echo $instance->stringValue; // "Hello world" will be printed.
?>
Also, is possible to send infinite params without names and his names
will be numeric similar as a non-asociatie array, but as Neuron object.
Example:
<?php
$str = 'Hello world';
$int = 50;
$con = false;
$instance = new Neuron($str, $int);
echo $instance->{0}; // "Hello world" will be printed.
?>
Is not necessary another conditionals. When __get is called
is only when the the property is not defined, so
only need return null in order to avoid the
PHP notice of undefined property.