Commit fixed wrong class name.
Fixed missing use line. Added php type. Added ability to add types.