public function getArguments(string $arguments = null): ? array
    {
        $argumentsList = null;

        // If a valid arguments list was passed in
        if (null !== $arguments && $arguments) {
            $testArgs      = str_replace('=', ':', $arguments);
            $argumentsList = json_decode('{' . $testArgs . '}', true);

            if (\is_array($argumentsList)) {
                foreach ($argumentsList as &$value) {
                    $value = $this->determineValue($value);
                }

                unset($value);
            }

            return $argumentsList;
        }

        return $argumentsList;
    }
public function getArguments(string $arguments = null): ? array
    {
        $argumentsList = null;

        // If a valid arguments list was passed in
        if (null !== $arguments && $arguments) {
            $testArgs      = str_replace('=', ':', $arguments);
            $argumentsList = json_decode('{' . $testArgs . '}', true);

            if (\is_array($argumentsList)) {
                foreach ($argumentsList as &$value) {
                    $value = $this->determineValue($value);
                }

                unset($value);
            }

            return $argumentsList;
        }

        return $argumentsList;
    }
public function getArguments ( string $ arguments = null ) : ? array { $ argumentsList = null ; // If a valid arguments list was passed in if ( null !== $ arguments && $ arguments ) { $ testArgs = str_replace ( '=' , ':' , $ arguments ) ; $ argumentsList = json_decode ( '{' . $ testArgs . '}' , true ) ; if ( \ is_array ( $ argumentsList ) ) { foreach ( $ argumentsList as & $ value ) { $ value = $ this -> determineValue ( $ value ) ; } unset ( $ value ) ; } return $ argumentsList ; } return $ argumentsList ; }
Filter a string of arguments into an key => value array.

@param string $arguments The arguments

@throws \Valkyrja\Annotations\Exceptions\InvalidAnnotationKeyArgument

@return array
Filter a string of arguments into an key = > value array .