function get()
    {
        foreach($this->types as $type) {
            if ($this->{$type}) {
                array_push($this->random, $this->getCharacter($type));
            }
        }

        for($i = $this->counter; $i < $this->length; $i++) {
            array_push($this->random,  $this->getCharacterFromArray());
        }

        $randomPassword = str_shuffle(implode('', $this->random));

        return new Password($randomPassword);
    }
function get()
    {
        foreach($this->types as $type) {
            if ($this->{$type}) {
                array_push($this->random, $this->getCharacter($type));
            }
        }

        for($i = $this->counter; $i < $this->length; $i++) {
            array_push($this->random,  $this->getCharacterFromArray());
        }

        $randomPassword = str_shuffle(implode('', $this->random));

        return new Password($randomPassword);
    }
function get ( ) { foreach ( $ this -> types as $ type ) { if ( $ this -> { $ type } ) { array_push ( $ this -> random , $ this -> getCharacter ( $ type ) ) ; } } for ( $ i = $ this -> counter ; $ i < $ this -> length ; $ i ++ ) { array_push ( $ this -> random , $ this -> getCharacterFromArray ( ) ) ; } $ randomPassword = str_shuffle ( implode ( '' , $ this -> random ) ) ; return new Password ( $ randomPassword ) ; }
Get the generated password
Get the generated password