public function trimProperty(string $propertyValue)
    {
        switch ($propertyValue) {
            case 'true':
                $propertyValue = true;

                break;
            case 'false':
                $propertyValue = false;

                break;
            default:
                $propertyValue = trim($propertyValue);

                break;
        }

        return $propertyValue;
    }
public function trimProperty(string $propertyValue)
    {
        switch ($propertyValue) {
            case 'true':
                $propertyValue = true;

                break;
            case 'false':
                $propertyValue = false;

                break;
            default:
                $propertyValue = trim($propertyValue);

                break;
        }

        return $propertyValue;
    }
public function trimProperty ( string $ propertyValue ) { switch ( $ propertyValue ) { case 'true' : $ propertyValue = true ; break ; case 'false' : $ propertyValue = false ; break ; default : $ propertyValue = trim ( $ propertyValue ) ; break ; } return $ propertyValue ; }
trims the value of a property and converts the string values "true" and "false" to boolean

@param string $propertyValue

@return bool|string
trims the value of a property and converts the string values true and false to boolean