public function order($generator)
    {
        $result = [];

        foreach (\range(1, $this->getSize()) as $number) {
            $value = ($generator ** $number) % $this->getSize();
            $result[$value] = $value;
        }

        return \count($result);
    }
public function order($generator)
    {
        $result = [];

        foreach (\range(1, $this->getSize()) as $number) {
            $value = ($generator ** $number) % $this->getSize();
            $result[$value] = $value;
        }

        return \count($result);
    }
public function order ( $ generator ) { $ result = [ ] ; foreach ( \ range ( 1 , $ this -> getSize ( ) ) as $ number ) { $ value = ( $ generator ** $ number ) % $ this -> getSize ( ) ; $ result [ $ value ] = $ value ; } return \ count ( $ result ) ; }
Get the order.

@param int $generator
The generator

@return int
The order
Get the order .