/**
  * Gets the description of an Entity with the specified EntityId and language code.
  *
  * @param EntityId $entityId
  * @param string $languageCode
  *
  * @throws TermLookupException
  * @return string|null
  */
 public function getDescription(EntityId $entityId, $languageCode)
 {
     try {
         return $this->entityInfo->getDescription($entityId, $languageCode);
     } catch (OutOfBoundsException $ex) {
         throw new TermLookupException($entityId, array($languageCode), $ex->getMessage(), $ex);
     }
 }
 /**
  * @dataProvider invalidArrayProvider
  */
 public function testGetDescriptionWithInvalidArray_throwsRuntimeException($array)
 {
     $info = new EntityInfo($array);
     $this->setExpectedException('RuntimeException');
     $info->getDescription(new ItemId('Q99'), 'en');
 }