Skip to content

Commit 1ac4952

Browse files
authored
Merge pull request #17 from JesseObrien/fix/abstract-message-declaration
Fixing abstract class method signatures in message objects
2 parents 90cfe30 + 5f10d4f commit 1ac4952

File tree

5 files changed

+15
-15
lines changed

5 files changed

+15
-15
lines changed

src/Message/Binary.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,11 @@ public function __construct($to, $from, $body, $udh)
4545
/**
4646
* Get an array of params to use in an API request.
4747
*/
48-
public function getRequestData()
48+
public function getRequestData($sent = true)
4949
{
50-
return array_merge(parent::getRequestData(), array(
50+
return array_merge(parent::getRequestData($sent), array(
5151
'body' => $this->body,
5252
'udh' => $this->udh,
5353
));
5454
}
55-
}
55+
}

src/Message/Unicode.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@ public function __construct($to, $from, $text)
3737
/**
3838
* Get an array of params to use in an API request.
3939
*/
40-
public function getRequestData()
40+
public function getRequestData($sent = true)
4141
{
42-
return array_merge(parent::getRequestData(), array(
42+
return array_merge(parent::getRequestData($sent), array(
4343
'text' => $this->text
4444
));
4545
}
46-
}
46+
}

src/Message/Vcal.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@ public function __construct($to, $from, $vcal)
3737
/**
3838
* Get an array of params to use in an API request.
3939
*/
40-
public function getRequestData()
40+
public function getRequestData($sent = true)
4141
{
42-
return array_merge(parent::getRequestData(), array(
42+
return array_merge(parent::getRequestData($sent), array(
4343
'vcal' => $this->vcal
4444
));
4545
}
46-
}
46+
}

src/Message/Vcard.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@ public function __construct($to, $from, $vcard)
3737
/**
3838
* Get an array of params to use in an API request.
3939
*/
40-
public function getRequestData()
40+
public function getRequestData($sent = true)
4141
{
42-
return array_merge(parent::getRequestData(), array(
42+
return array_merge(parent::getRequestData($sent), array(
4343
'vcard' => $this->vcard
4444
));
4545
}
46-
}
46+
}

src/Message/Wap.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,12 @@ public function __construct($to, $from, $title, $url, $validity)
5353
/**
5454
* Get an array of params to use in an API request.
5555
*/
56-
public function getRequestData()
56+
public function getRequestData($sent = true)
5757
{
58-
return array_merge(parent::getRequestData(), array(
58+
return array_merge(parent::getRequestData($sent), array(
5959
'title' => $this->title,
6060
'url' => $this->url,
6161
'validity' => $this->validity,
6262
));
6363
}
64-
}
64+
}

0 commit comments

Comments
 (0)