added method getRequestId()
added php 5.3 dependency
added method __toString()