protected function parseProperties(array $properties)
    {
        $parsed = [];

        foreach ($properties as $propertyString) {
            if (!mb_strpos($propertyString, ':')) {
                list($key, $value) = $this->parseBooleanShortcut($propertyString);
                $parsed[Type::camelCase($key)] = $value;
                continue;
            }


            list($key, $value) = explode(':', $propertyString, 2);


            if (!$this->isNestedShortCut($value)) {
                $parsed[Type::camelCase($key)] = $value;
                continue;
            }

            $type = $this->stringToType(trim($value, '[]'));

            $parsed[Type::camelCase($key)] = $type;
        }

        return $parsed;
    }
protected function parseProperties(array $properties)
    {
        $parsed = [];

        foreach ($properties as $propertyString) {
            if (!mb_strpos($propertyString, ':')) {
                list($key, $value) = $this->parseBooleanShortcut($propertyString);
                $parsed[Type::camelCase($key)] = $value;
                continue;
            }


            list($key, $value) = explode(':', $propertyString, 2);


            if (!$this->isNestedShortCut($value)) {
                $parsed[Type::camelCase($key)] = $value;
                continue;
            }

            $type = $this->stringToType(trim($value, '[]'));

            $parsed[Type::camelCase($key)] = $type;
        }

        return $parsed;
    }
protected function parseProperties ( array $ properties ) { $ parsed = [ ] ; foreach ( $ properties as $ propertyString ) { if ( ! mb_strpos ( $ propertyString , ':' ) ) { list ( $ key , $ value ) = $ this -> parseBooleanShortcut ( $ propertyString ) ; $ parsed [ Type :: camelCase ( $ key ) ] = $ value ; continue ; } list ( $ key , $ value ) = explode ( ':' , $ propertyString , 2 ) ; if ( ! $ this -> isNestedShortCut ( $ value ) ) { $ parsed [ Type :: camelCase ( $ key ) ] = $ value ; continue ; } $ type = $ this -> stringToType ( trim ( $ value , '[]' ) ) ; $ parsed [ Type :: camelCase ( $ key ) ] = $ type ; } return $ parsed ; }
Parses all property string of an array into single arrays

@param array $properties

@return array
Parses all property string of an array into single arrays