Skip to content

Commit

Permalink
Add wst classes
Browse files Browse the repository at this point in the history
  • Loading branch information
tvdijen committed Jan 25, 2024
1 parent af2fbd1 commit 1a15461
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions src/XML/wst/AbstractBinarySecretTypeOpenEnumType.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?php

declare(strict_types=1);

namespace SimpleSAML\WSSecurity\XML\wst;

use SimpleSAML\XML\URIElementTrait;

/**
* A BinarySecretTypeOpenEnum element
*
* @package tvdijen/ws-security
*/
abstract class AbstractBinarySecretTypeOpenEnum extends AbstractWstElement
{
use URIElementTrait;


/**
* @param \SimpleSAML\WSSecurity\XML\wst\BinarySecretTypeEnum|string $content
*/
public function __construct(BinarySecretTypeEnum|string $content)
{
if ($content instanceof BinarySecretTypeEnum) {
$content = $content->value;
}

$this->setContent($content);
}
}

0 comments on commit 1a15461

Please sign in to comment.