code: public function getForeignDataItem($key)
      {
          if (!isset($this->_foreignDataItems[$key])) {
              $this->createForeignDataItem(null, ['foreignPrimaryKey' => $key]);
          }
          if (isset($this->_foreignDataItems[$key])) {
              return $this->_foreignDataItems[$key];
          }
  
          return false;
      }
docs: Get foreign data item.
  
  @param [[@doctodo param_type:key]] $key [[@doctodo param_description:key]]
  
  @return [[@doctodo return_type:getForeignDataItem]] [[@doctodo return_description:getForeignDataItem]]