src/Helper/AccessKey.php
public static function create($key)
    {
        // Ignore arrays and objects
        if (is_object($key) or is_array($key)) {
            $key = '';
        }

        $key_string = strval($key);

        $key = new self;
        $key->raw = $key_string;

        $keys = explode('.', $key_string);

        foreach ($keys as $value) {
            $key->push($value);
        }

        $key->rewind();

        return $key;
    }
public static function create($key)
    {
        // Ignore arrays and objects
        if (is_object($key) or is_array($key)) {
            $key = '';
        }

        $key_string = strval($key);

        $key = new self;
        $key->raw = $key_string;

        $keys = explode('.', $key_string);

        foreach ($keys as $value) {
            $key->push($value);
        }

        $key->rewind();

        return $key;
    }
public static function create ( $ key ) { // Ignore arrays and objects if ( is_object ( $ key ) or is_array ( $ key ) ) { $ key = '' ; } $ key_string = strval ( $ key ) ; $ key = new self ; $ key -> raw = $ key_string ; $ keys = explode ( '.' , $ key_string ) ; foreach ( $ keys as $ value ) { $ key -> push ( $ value ) ; } $ key -> rewind ( ) ; return $ key ; }
Transforms the Key to a string

@param mixed $key

@return string
Transforms the Key to a string