and I would not forbid passing another scalar but just cast it when setting it. PHP does not have strict types for scalars