src/Generics/Streams/StandardOutputStream.php
public function setInterceptor(StreamInterceptor $interceptor)
    {
        $this->interceptor = $interceptor;
        stream_filter_append($this->stdout, $interceptor->getFilterName());
    }
public function setInterceptor(StreamInterceptor $interceptor)
    {
        $this->interceptor = $interceptor;
        stream_filter_append($this->stdout, $interceptor->getFilterName());
    }
Apply a stream interceptor

@param StreamInterceptor $interceptor