object to collect information PHP