Since the class is located in the NS 'Presence' DateInterval() should cause an PHPError to be thrown .. use \DateInterval()