public function getToolConsumerName()
    {
        return $this->hasVariable(self::TOOL_CONSUMER_INSTANCE_NAME)
            ? $this->getVariable(self::TOOL_CONSUMER_INSTANCE_NAME)
            : $this->hasVariable(self::TOOL_CONSUMER_INSTANCE_DESCRIPTION)
                ? $this->getVariable(self::TOOL_CONSUMER_INSTANCE_DESCRIPTION)
                : null;
    }
public function getToolConsumerName()
    {
        return $this->hasVariable(self::TOOL_CONSUMER_INSTANCE_NAME)
            ? $this->getVariable(self::TOOL_CONSUMER_INSTANCE_NAME)
            : $this->hasVariable(self::TOOL_CONSUMER_INSTANCE_DESCRIPTION)
                ? $this->getVariable(self::TOOL_CONSUMER_INSTANCE_DESCRIPTION)
                : null;
    }
public function getToolConsumerName ( ) { return $ this -> hasVariable ( self :: TOOL_CONSUMER_INSTANCE_NAME ) ? $ this -> getVariable ( self :: TOOL_CONSUMER_INSTANCE_NAME ) : $ this -> hasVariable ( self :: TOOL_CONSUMER_INSTANCE_DESCRIPTION ) ? $ this -> getVariable ( self :: TOOL_CONSUMER_INSTANCE_DESCRIPTION ) : null ; }
Tries to return the tool consumer name

Returns null if no name found

@return string
@throws LtiVariableMissingException
Tries to return the tool consumer name