Php Get Array Of Object In Typescript