clarify parameter class
[auerswald-callnotifier.git] / src / callnotifier / EDSS1 / Parameter.php
index ded30309f580ddc699a6642c45511d21ef5c2226..0f20427ccf17325a06cc0cd9a4088bd656f668f8 100644 (file)
@@ -1,6 +1,9 @@
 <?php
 namespace callnotifier;
 
+/**
+ * A parameter is what the specs call a "information element"
+ */
 class EDSS1_Parameter
 {
     const CALLING_PARTY_NUMBER = "\x6C";
@@ -11,6 +14,21 @@ class EDSS1_Parameter
     public $type;
     public $length;
     public $data;
+
+    /**
+     * Internal title of the parameter type
+     */
+    public $title;
+
+    public function __construct($type = null)
+    {
+        $this->type = $type;
+    }
+
+    public function setData($data)
+    {
+        $this->data = $data;
+    }
 }
 
 ?>