public static function normalizeProperty($property) { return preg_replace('{[^a-z0-9_]}i', '', $property); }
/** * Property constructor. * * @param string $name * @param string $type */ public function __construct($name, $type) { $this->name = Normalizer::normalizeProperty($name); $this->type = Normalizer::normalizeDataType($type); }