Skip to content

Commit 39c0d87

Browse files
author
Lee Hicks
committed
Rework service request types
1 parent d0849a1 commit 39c0d87

1 file changed

Lines changed: 2 additions & 10 deletions

File tree

src/Components/ScriptServiceRequest.php

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,22 +10,14 @@
1010
* Class ScriptServiceRequest
1111
*
1212
*/
13-
class ScriptServiceRequest implements ServiceRequestInterface
13+
class ScriptServiceRequest extends InternalServiceRequest implements ServiceRequestInterface
1414
{
15-
use InternalServiceRequest;
15+
protected $requestorType = ServiceRequestorTypes::SCRIPT;
1616

1717
public function __construct($method = Verbs::GET, $parameters = [], $headers = [])
1818
{
1919
$this->setMethod($method);
2020
$this->setParameters($parameters);
2121
$this->setHeaders($headers);
2222
}
23-
24-
/**
25-
* {@inheritdoc}
26-
*/
27-
public function getRequestorType()
28-
{
29-
return ServiceRequestorTypes::SCRIPT;
30-
}
3123
}

0 commit comments

Comments
 (0)