code: public function setCompanionObject($value)
      {
          if ($this->isForeign) {
              return $this->localObject = $value;
          } else {
              return $this->foreignObject = $value;
          }
      }
docs: Set companion object.
  
  @param [[@doctodo param_type:value]] $value [[@doctodo param_description:value]]
  
  @return [[@doctodo return_type:setCompanionObject]] [[@doctodo return_description:setCompanionObject]]