Skip to content

Commit 7c1f614

Browse files
committed
Add constants that hold the xsd-type
1 parent 9891e57 commit 7c1f614

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+172
-0
lines changed

src/Type/AbstractValueType.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,13 @@
1414
*/
1515
abstract class AbstractValueType implements ValueTypeInterface
1616
{
17+
/** @var string */
18+
public const SCHEMA_TYPE = 'xs:anySimpleType';
19+
20+
/** @var string */
21+
public const SCHEMA_NAMESPACE = 'http://www.w3.org/2001/XMLSchema';
22+
23+
1724
/**
1825
* Set the value for this type.
1926
*

src/Type/AnyURIValue.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@
1212
*/
1313
class AnyURIValue extends AbstractValueType
1414
{
15+
/** @var string */
16+
public const SCHEMA_TYPE = 'xs:anyURI';
17+
18+
1519
/**
1620
* Sanitize the value.
1721
*

src/Type/Base64BinaryValue.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@
1414
*/
1515
class Base64BinaryValue extends AbstractValueType
1616
{
17+
/** @var string */
18+
public const SCHEMA_TYPE = 'xs:base64Binary';
19+
20+
1721
/**
1822
* Sanitize the value.
1923
*

src/Type/BooleanValue.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@
1212
*/
1313
class BooleanValue extends AbstractValueType
1414
{
15+
/** @var string */
16+
public const SCHEMA_TYPE = 'xs:boolean';
17+
18+
1519
/**
1620
* Sanitize the value.
1721
*

src/Type/ByteValue.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@
1212
*/
1313
class ByteValue extends LongValue
1414
{
15+
/** @var string */
16+
public const SCHEMA_TYPE = 'xs:byte';
17+
18+
1519
/**
1620
* Validate the value.
1721
*

src/Type/DateTimeValue.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@
1313
*/
1414
class DateTimeValue extends AbstractValueType
1515
{
16+
/** @var string */
17+
public const SCHEMA_TYPE = 'xs:dateTime';
18+
19+
/** @var string *?
1620
public const DATETIME_FORMAT = 'Y-m-d\\TH:i:sP';
1721
1822

src/Type/DateValue.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@
1212
*/
1313
class DateValue extends AbstractValueType
1414
{
15+
/** @var string */
16+
public const SCHEMA_TYPE = 'xs:date';
17+
18+
1519
/**
1620
* Sanitize the value.
1721
*

src/Type/DayValue.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@
1212
*/
1313
class DayValue extends AbstractValueType
1414
{
15+
/** @var string */
16+
public const SCHEMA_TYPE = 'xs:gDay';
17+
18+
1519
/**
1620
* Sanitize the value.
1721
*

src/Type/DecimalValue.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@
1212
*/
1313
class DecimalValue extends AbstractValueType
1414
{
15+
/** @var string */
16+
public const SCHEMA_TYPE = 'xs:decimal';
17+
18+
1519
/**
1620
* Sanitize the value.
1721
*

src/Type/DoubleValue.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@
1212
*/
1313
class DoubleValue extends AbstractValueType
1414
{
15+
/** @var string */
16+
public const SCHEMA_TYPE = 'xs:double';
17+
18+
1519
/**
1620
* Sanitize the value.
1721
*

0 commit comments

Comments
 (0)