original_string: public function getPackage()
      {
          $inheritedElement = $this->getInheritedElement();
          if ($this->package instanceof PackageDescriptor
              && ! ($this->package->getName() === '\\' && $inheritedElement)) {
              return $this->package;
          }
  
          if ($inheritedElement instanceof DescriptorAbstract) {
              return $inheritedElement->getPackage();
          }
  
          return null;
      }
code: public function getPackage()
      {
          $inheritedElement = $this->getInheritedElement();
          if ($this->package instanceof PackageDescriptor
              && ! ($this->package->getName() === '\\' && $inheritedElement)) {
              return $this->package;
          }
  
          if ($inheritedElement instanceof DescriptorAbstract) {
              return $inheritedElement->getPackage();
          }
  
          return null;
      }
code_tokens: public function getPackage ( ) { $ inheritedElement = $ this -> getInheritedElement ( ) ; if ( $ this -> package instanceof PackageDescriptor && ! ( $ this -> package -> getName ( ) === '\\' && $ inheritedElement ) ) { return $ this -> package ; } if ( $ inheritedElement instanceof DescriptorAbstract ) { return $ inheritedElement -> getPackage ( ) ; } return null ; }
docstring: Returns the package name for this element.
  
  @return PackageDescriptor
docstring_tokens: Returns the package name for this element .