function getAllInterfaces($includeSelf) {
    if (NULL === $this->interfacesAll) {
      $this->interfacesAllInclSelf = $this->interfacesAll = $this->buildAllInterfacesWithoutSelf();
      if (NULL !== $this->selfInterfaceName) {
        $selfInterface = $this->classIndex->classGetReflection($this->selfInterfaceName);
        if (NULL !== $selfInterface) {
          $this->interfacesAllInclSelf = array($this->selfInterfaceName => $selfInterface) + $this->interfacesAllInclSelf;
        }
      }
    }
    return $includeSelf
      ? $this->interfacesAllInclSelf
      : $this->interfacesAll;
  }
function getAllInterfaces($includeSelf) {
    if (NULL === $this->interfacesAll) {
      $this->interfacesAllInclSelf = $this->interfacesAll = $this->buildAllInterfacesWithoutSelf();
      if (NULL !== $this->selfInterfaceName) {
        $selfInterface = $this->classIndex->classGetReflection($this->selfInterfaceName);
        if (NULL !== $selfInterface) {
          $this->interfacesAllInclSelf = array($this->selfInterfaceName => $selfInterface) + $this->interfacesAllInclSelf;
        }
      }
    }
    return $includeSelf
      ? $this->interfacesAllInclSelf
      : $this->interfacesAll;
  }
function getAllInterfaces ( $ includeSelf ) { if ( NULL === $ this -> interfacesAll ) { $ this -> interfacesAllInclSelf = $ this -> interfacesAll = $ this -> buildAllInterfacesWithoutSelf ( ) ; if ( NULL !== $ this -> selfInterfaceName ) { $ selfInterface = $ this -> classIndex -> classGetReflection ( $ this -> selfInterfaceName ) ; if ( NULL !== $ selfInterface ) { $ this -> interfacesAllInclSelf = array ( $ this -> selfInterfaceName => $ selfInterface ) + $ this -> interfacesAllInclSelf ; } } } return $ includeSelf ? $ this -> interfacesAllInclSelf : $ this -> interfacesAll ; }
Gets all interfaces directly or indirectly implemented by this class.

Will include the class itself if it is an interface.

@param bool $includeSelf

@return \Donquixote\HastyReflectionCommon\Reflection\ClassLike\ClassLikeReflectionInterface[]
Gets all interfaces directly or indirectly implemented by this class .