src/View.php
public function assign($array = [])
    {
        foreach ($array as $key => $value) {
            if (is_string($key)) {
                $this->set($key, $value);
            }
        }

        return $this;
    }
public function assign($array = [])
    {
        foreach ($array as $key => $value) {
            if (is_string($key)) {
                $this->set($key, $value);
            }
        }

        return $this;
    }
public function assign ( $ array = [ ] ) { foreach ( $ array as $ key => $ value ) { if ( is_string ( $ key ) ) { $ this -> set ( $ key , $ value ) ; } } return $ this ; }
Assigns variables in bulk in the current scope

@param array $array
@return $this
Assigns variables in bulk in the current scope