-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2b60cec
commit db885b2
Showing
7 changed files
with
118 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<?php | ||
|
||
namespace BeSimple\SoapCommon\Type; | ||
|
||
use BeSimple\SoapBundle\ServiceDefinition\Annotation as Soap; | ||
|
||
abstract class AbstractKeyValue | ||
{ | ||
/** | ||
* @Soap\ComplexType("string") | ||
*/ | ||
protected $key; | ||
|
||
/** | ||
* The Soap type of this variable must be defined in child class | ||
*/ | ||
protected $value; | ||
|
||
public function __construct($key, $value) | ||
{ | ||
$this->key = $key; | ||
$this->value = $value; | ||
} | ||
|
||
public function getKey() | ||
{ | ||
return $this->key; | ||
} | ||
|
||
public function getValue() | ||
{ | ||
return $this->value; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?php | ||
|
||
namespace BeSimple\SoapCommon\Type\KeyValue; | ||
|
||
use BeSimple\SoapBundle\ServiceDefinition\Annotation as Soap; | ||
use BeSimple\SoapCommon\Type\AbstractKeyValue; | ||
|
||
class Boolean extends AbstractKeyValue | ||
{ | ||
/** | ||
* @Soap\ComplexType("boolean") | ||
*/ | ||
protected $value; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?php | ||
|
||
namespace BeSimple\SoapCommon\Type\KeyValue; | ||
|
||
use BeSimple\SoapBundle\ServiceDefinition\Annotation as Soap; | ||
use BeSimple\SoapCommon\Type\AbstractKeyValue; | ||
|
||
class Date extends AbstractKeyValue | ||
{ | ||
/** | ||
* @Soap\ComplexType("date") | ||
*/ | ||
protected $value; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?php | ||
|
||
namespace BeSimple\SoapCommon\Type\KeyValue; | ||
|
||
use BeSimple\SoapBundle\ServiceDefinition\Annotation as Soap; | ||
use BeSimple\SoapCommon\Type\AbstractKeyValue; | ||
|
||
class DateTime extends AbstractKeyValue | ||
{ | ||
/** | ||
* @Soap\ComplexType("dateTime") | ||
*/ | ||
protected $value; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?php | ||
|
||
namespace BeSimple\SoapCommon\Type\KeyValue; | ||
|
||
use BeSimple\SoapBundle\ServiceDefinition\Annotation as Soap; | ||
use BeSimple\SoapCommon\Type\AbstractKeyValue; | ||
|
||
class Float extends AbstractKeyValue | ||
{ | ||
/** | ||
* @Soap\ComplexType("float") | ||
*/ | ||
protected $value; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?php | ||
|
||
namespace BeSimple\SoapCommon\Type\KeyValue; | ||
|
||
use BeSimple\SoapBundle\ServiceDefinition\Annotation as Soap; | ||
use BeSimple\SoapCommon\Type\AbstractKeyValue; | ||
|
||
class Int extends AbstractKeyValue | ||
{ | ||
/** | ||
* @Soap\ComplexType("int") | ||
*/ | ||
protected $value; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?php | ||
|
||
namespace BeSimple\SoapCommon\Type\KeyValue; | ||
|
||
use BeSimple\SoapBundle\ServiceDefinition\Annotation as Soap; | ||
use BeSimple\SoapCommon\Type\AbstractKeyValue; | ||
|
||
class String extends AbstractKeyValue | ||
{ | ||
/** | ||
* @Soap\ComplexType("string") | ||
*/ | ||
protected $value; | ||
} |