working on php 5.4 metrics class