propertyHolder = $propertyHolder; } /** * formats the name of a property * * @param bool|string $value * * @return bool|string * * @throws void */ public function formatPropertyValue($value, string $property) { if ($this->propertyHolder->getPropertyType($property) === PropertyHolder::TYPE_BOOLEAN) { return $value === true || $value === 'true' || $value === '1'; } return $value; } }