Typescript Class Optional Constructor In Php