Property.php 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <?php
  2. /**
  3. * Part of XML_XRD
  4. *
  5. * PHP version 5
  6. *
  7. * @category XML
  8. * @package XML_XRD
  9. * @author Christian Weiske <cweiske@php.net>
  10. * @license http://www.gnu.org/copyleft/lesser.html LGPL
  11. * @link http://pear.php.net/package/XML_XRD
  12. */
  13. /**
  14. * Property element in a XRD document.
  15. *
  16. * The <XRD> root element as well as <Link> tags may have <Property> children.
  17. *
  18. * @category XML
  19. * @package XML_XRD
  20. * @author Christian Weiske <cweiske@php.net>
  21. * @license http://www.gnu.org/copyleft/lesser.html LGPL
  22. * @version Release: @package_version@
  23. * @link http://pear.php.net/package/XML_XRD
  24. */
  25. class XML_XRD_Element_Property
  26. {
  27. /**
  28. * Value of the property.
  29. *
  30. * @var string|null
  31. */
  32. public $value;
  33. /**
  34. * Type of the propery.
  35. *
  36. * @var string
  37. */
  38. public $type;
  39. /**
  40. * Create a new instance
  41. *
  42. * @param string $type String representing the property type
  43. * @param string $value Value of the property, may be NULL
  44. */
  45. public function __construct($type = null, $value = null)
  46. {
  47. $this->type = $type;
  48. $this->value = $value;
  49. }
  50. }
  51. ?>