code: public function setInterceptor(StreamInterceptor $interceptor)
      {
          $this->interceptor = $interceptor;
          stream_filter_append($this->stdout, $interceptor->getFilterName());
      }
docs: Apply a stream interceptor
  
  @param StreamInterceptor $interceptor