public function toArray()
    {
        return [
            'key'      => $this->key(),
            'name'     => $this->name(),
            'script'   => $this->script(),
            'dir'      => $this->direction(),
            'native'   => $this->native(),
            'regional' => $this->regional(),
        ];
    }
public function toArray()
    {
        return [
            'key'      => $this->key(),
            'name'     => $this->name(),
            'script'   => $this->script(),
            'dir'      => $this->direction(),
            'native'   => $this->native(),
            'regional' => $this->regional(),
        ];
    }
public function toArray ( ) { return [ 'key' => $ this -> key ( ) , 'name' => $ this -> name ( ) , 'script' => $ this -> script ( ) , 'dir' => $ this -> direction ( ) , 'native' => $ this -> native ( ) , 'regional' => $ this -> regional ( ) , ] ; }
Get the locale entity as an array.

@return array
Get the locale entity as an array .