public function validateType($type)
    {
        if ($this->_toolbox->isGraph()) {

            if (!in_array(strtolower($type), array('edge', 'vertex'))) {
                return false;
            }
        }

        return true;
    }
public function validateType($type)
    {
        if ($this->_toolbox->isGraph()) {

            if (!in_array(strtolower($type), array('edge', 'vertex'))) {
                return false;
            }
        }

        return true;
    }
public function validateType ( $ type ) { if ( $ this -> _toolbox -> isGraph ( ) ) { if ( ! in_array ( strtolower ( $ type ) , array ( 'edge' , 'vertex' ) ) ) { return false ; } } return true ; }
Validates the type to make sure it is valid in the current context. For graphs, a type other than "edge" or "vertex" would be invalid.
@param  string  $type The type to validate.
@return boolean
Validates the type to make sure it is valid in the current context . For graphs a type other than edge or vertex would be invalid .