original_string: public function sumOfferCount()
      {
          $count = $this->getOfferCount();
          if ($this->getParent()) {
              $count += $this->getParent()->getOfferCount();
          }
  
          if ($this->getLinkedSites()->count()) {
              /** @var Site $linked */
              foreach ($this->getLinkedSites() as $linked) {
                  $count += $linked->getOfferCount();
              }
          }
  
          if ($this->getSubDomains()->count()) {
              foreach ($this->getSubDomains() as $linked) {
                  $count += $linked->getOfferCount();
              }
          }
  
          return $count;
      }
code: public function sumOfferCount()
      {
          $count = $this->getOfferCount();
          if ($this->getParent()) {
              $count += $this->getParent()->getOfferCount();
          }
  
          if ($this->getLinkedSites()->count()) {
              /** @var Site $linked */
              foreach ($this->getLinkedSites() as $linked) {
                  $count += $linked->getOfferCount();
              }
          }
  
          if ($this->getSubDomains()->count()) {
              foreach ($this->getSubDomains() as $linked) {
                  $count += $linked->getOfferCount();
              }
          }
  
          return $count;
      }
code_tokens: public function sumOfferCount ( ) { $ count = $ this -> getOfferCount ( ) ; if ( $ this -> getParent ( ) ) { $ count += $ this -> getParent ( ) -> getOfferCount ( ) ; } if ( $ this -> getLinkedSites ( ) -> count ( ) ) { /** @var Site $linked */ foreach ( $ this -> getLinkedSites ( ) as $ linked ) { $ count += $ linked -> getOfferCount ( ) ; } } if ( $ this -> getSubDomains ( ) -> count ( ) ) { foreach ( $ this -> getSubDomains ( ) as $ linked ) { $ count += $ linked -> getOfferCount ( ) ; } } return $ count ; }
docstring: Get sum of all offers
  
  @return mixed
docstring_tokens: Get sum of all offers