Type-Safe PHP - common component