Polish types API
-
ClassGenerator
does not addNonCheckedClassType
into use statements. That could be fixed with common interface forClassType
andNonCheckedClassType
, but they actually do the same things except for constructor so they should inherit one from the other. AsClassType
has more specific behavior (class existence checking), it should be renamed toCheckedClassType
and should inherit fromNonCheckedClassType
which should be further renamed to more generalClassType
. - remove
classType()
inTypes/functions.php
– !16 (merged) provides cleaner/more explicit API