Test Failed
Pull Request — master (#2)
by Laurynas
43:45
created
src/Client.php 1 patch
Doc Comments   +10 added lines patch added patch discarded remove patch
@@ -21,6 +21,10 @@  discard block
 block discarded – undo
21 21
      */
22 22
     private $endpoint;
23 23
 
24
+    /**
25
+     * @param string $survey
26
+     * @param string $token
27
+     */
24 28
     public function __construct($survey, $token, $endpoint = 'api.qualiaanalytics.org')
25 29
     {
26 30
         $this->survey = $survey;
@@ -49,6 +53,9 @@  discard block
 block discarded – undo
49 53
         return $this->survey;
50 54
     }
51 55
 
56
+    /**
57
+     * @param string $url
58
+     */
52 59
     public function post($url, $data = array(), $additional = array())
53 60
     {
54 61
         try {
@@ -73,6 +80,9 @@  discard block
 block discarded – undo
73 80
         return $body;
74 81
     }
75 82
 
83
+    /**
84
+     * @param string $url
85
+     */
76 86
     public function get($url)
77 87
     {
78 88
         $url = "https://" . $this->endpoint . '/' . $url . '?api_token=' . $this->token;
Please login to merge, or discard this patch.