src/ULogin/Init.php
public function setType($type)
    {
        if(is_array($type) === true) {
            $type    = $type[key($type)];
        }

        $this->types = array_flip($this->types);
        if (isset($this->types[$type]) === true) {

            $this->widget = $type;

        }

        return $this;
    }
public function setType($type)
    {
        if(is_array($type) === true) {
            $type    = $type[key($type)];
        }

        $this->types = array_flip($this->types);
        if (isset($this->types[$type]) === true) {

            $this->widget = $type;

        }

        return $this;
    }
public function setType ( $ type ) { if ( is_array ( $ type ) === true ) { $ type = $ type [ key ( $ type ) ] ; } $ this -> types = array_flip ( $ this -> types ) ; if ( isset ( $ this -> types [ $ type ] ) === true ) { $ this -> widget = $ type ; } return $ this ; }
Lets you specify the widget type. Must match the variable `types`

@param $type
@example <code>
$this->setType('small');
</code>
@return Init
Lets you specify the widget type . Must match the variable types