hoochicken / parameter-bag
Parameter bag
v1.2.1
2023-05-24 19:50 UTC
Requires
- php: >=8.0
README
Administrate parameters in a collection, setters (setInt, setString ...) and getters (getInt, getString ...)
$numClients = 10; $parameterBag = new ParameterBag(); $parameterBag->set('number_of_clients', $numClients); vardump($parameterBag->getInt('number_of_clients')); // (int)10 vardump($parameterBag->getString('number_of_clients')); // (string)'10' vardump($parameterBag->getBool('number_of_clients')); // (bool)true