-
-
Notifications
You must be signed in to change notification settings - Fork 40
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
Showing
13 changed files
with
158 additions
and
199 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
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
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,45 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace GoetasWebservices\XML\XSDReader\Schema; | ||
|
||
/** | ||
* Contains the information of additional custom attributes that are not part of the XSD specification. | ||
* | ||
* For example: | ||
* <xsd:element name="myElement" dfdl:encoding="iso-8859-1" /> | ||
*/ | ||
class CustomAttribute | ||
{ | ||
private string $namespaceURI; | ||
|
||
private string $name; | ||
|
||
private string $value; | ||
|
||
public function __construct( | ||
string $namespaceURI, | ||
string $name, | ||
string $value | ||
) { | ||
$this->namespaceURI = $namespaceURI; | ||
$this->name = $name; | ||
$this->value = $value; | ||
} | ||
|
||
public function getNamespaceURI(): string | ||
{ | ||
return $this->namespaceURI; | ||
} | ||
|
||
public function getName(): string | ||
{ | ||
return $this->name; | ||
} | ||
|
||
public function getValue(): string | ||
{ | ||
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,18 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace GoetasWebservices\XML\XSDReader\Schema; | ||
|
||
interface CustomAttributeContainerInterface | ||
{ | ||
/** | ||
* @param list<CustomAttribute> $customAttributes | ||
*/ | ||
public function setCustomAttributes(array $customAttributes): void; | ||
|
||
/** | ||
* @return list<CustomAttribute> | ||
*/ | ||
public function getCustomAttributes(): array; | ||
} |
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,29 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace GoetasWebservices\XML\XSDReader\Schema; | ||
|
||
trait CustomAttributeContainerTrait | ||
{ | ||
/** | ||
* @var list<CustomAttribute> | ||
*/ | ||
protected array $customAttributes = []; | ||
|
||
/** | ||
* @return list<CustomAttribute> | ||
*/ | ||
public function getCustomAttributes(): array | ||
{ | ||
return $this->customAttributes; | ||
} | ||
|
||
/** | ||
* @param list<CustomAttribute> $customAttributes | ||
*/ | ||
public function setCustomAttributes(array $customAttributes): void | ||
{ | ||
$this->customAttributes = $customAttributes; | ||
} | ||
} |
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
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.