html work, code comments for tomorrow's tasks

This commit is contained in:
akemidx
2023-12-06 18:05:58 -05:00
parent 327d27591f
commit b7f6c7df06
3 changed files with 21 additions and 25 deletions
+7 -3
View File
@@ -24,6 +24,9 @@ class SavedReport extends Model
'options',
];
//we will need a bit to catch and store the name of the report.
//for now the blip above is creating the name, but can be confusing if multiple are made at once
public function checkmarkValue($property): string
{
// Assuming we're using the null object pattern,
@@ -41,9 +44,10 @@ class SavedReport extends Model
{
// @todo: this method feels more like "radioShouldBeChecked" or something...
if (array_has($this->options, $property) && $this->options[$property] === $value) {
return $return;
}
// if (array_has($this->options, $property) && $this->options[$property] === $value) {
// return $return;
// }
// this is currently throwing an error. $property is coming through as a string and it needs to be an array
return null;
}