Skip to content

Commit fa4eb73

Browse files
committed
Add getter-method to get the schema type
1 parent 19fcf08 commit fa4eb73

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/XMLSchema/Type/Interface/AbstractAnySimpleType.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,4 +145,13 @@ public function equals(ValueTypeInterface|string $other): bool
145145

146146
return strcmp($this->getValue(), $other->getValue()) === 0;
147147
}
148+
149+
150+
/**
151+
* Get the type of the value
152+
*/
153+
public function getType(): string
154+
{
155+
return static::SCHEMA_NAMESPACE_PREFIX . ':' . static::SCHEMA_TYPE;
156+
}
148157
}

0 commit comments

Comments
 (0)