public function setType($type)
    {
        if (in_array($type, array_keys($this->devices))) {
            $this->type = $type;
        }
    }
public function setType($type)
    {
        if (in_array($type, array_keys($this->devices))) {
            $this->type = $type;
        }
    }
public function setType ( $ type ) { if ( in_array ( $ type , array_keys ( $ this -> devices ) ) ) { $ this -> type = $ type ; } }
Force device type.

@param string $type
Force device type .