add phpdoc to ringbuffer