2
You can do something corresponding to this with PHP (use today’s date as default in the parameter)?
class fiscalOBCharts
{
private $exercise;
public function exercise(string $exercise = date('d/m/Y')){
$this->exercise = $exercise;
return $this;
}
}
I hadn’t even thought of using a builder, solved my problem.
– AnthraxisBR