<commit_before><?php

namespace WsdlToPhp\WsSecurity;

class Security extends Element
{
    /**
     * Element name
     * @var string
     */
    const NAME = 'Security';
    /**
     * Element attribute mustunderstand name
     * @var string
     */
    const ATTRIBUTE_MUST_UNDERSTAND = 'SOAP-ENV:mustunderstand';
    /**
     * Element attribute mustunderstand name
     * @var string
     */
    const ATTRIBUTE_ACTOR = 'SOAP-ENV:actor';
    /**
     * UsernameToken element
     * @var UsernameToken
     */
    protected $usernameToken;
    /**
     * Timestamp element
     * @var Timestamp
     */
    protected $timestamp;
    /**
     * Constructor for Nonce element
     * @param bool $mustunderstand
     * @param string $actor
     * @param string $namespace the namespace
     */
    public function __construct($mustunderstand = false, $actor = null, $namespace = self::NS_WSSE)
    {
        parent::__construct(self::NAME, $namespace);
        /**
         * Sets attributes
         */
        if ($mustunderstand === true) {
            $this->setAttribute(self::ATTRIBUTE_MUST_UNDERSTAND, $mustunderstand);
        }
        if (!empty($actor)) {
            $this->setAttribute(self::ATTRIBUTE_ACTOR, $actor);
        }
    }
    /**
     * @return UsernameToken
     */
    public function getUsernameToken()
    {
        return $this->usernameToken;
    }
    /**
     * @param UsernameToken $usernameToken
     * @return Security
     */
    public function setUsernameToken(UsernameToken $usernameToken)
    {
        $this->usernameToken = $usernameToken;
        return $this;
    }
    /**
     * @return Timestamp
     */
    public function getTimestamp()
    {
        return $this->timestamp;
    }
    /**
     * @param Timestamp $timestamp
     * @return Security
     */
    public function setTimestamp(Timestamp $timestamp)
    {
        $this->timestamp = $timestamp;
        return $this;
    }
    /**
     * Overrides methods in order to set the values
     * @param bool $asDomElement returns elements as a DOMElement or as a string
     * @return string
     */
    protected function __toSend($asDomElement = false)
    {
        $this->setValue(array(
            $this->getUsernameToken(),
            $this->getTimestamp(),
        ));
        return parent::__toSend($asDomElement = false);
    }
}<commit_msg>remove anoying value<commit_after><?php

namespace WsdlToPhp\WsSecurity;

class Security extends Element
{
    /**
     * Element name
     * @var string
     */
    const NAME = 'Security';
    /**
     * Element attribute mustunderstand name
     * @var string
     */
    const ATTRIBUTE_MUST_UNDERSTAND = 'SOAP-ENV:mustunderstand';
    /**
     * Element attribute mustunderstand name
     * @var string
     */
    const ATTRIBUTE_ACTOR = 'SOAP-ENV:actor';
    /**
     * UsernameToken element
     * @var UsernameToken
     */
    protected $usernameToken;
    /**
     * Timestamp element
     * @var Timestamp
     */
    protected $timestamp;
    /**
     * Constructor for Nonce element
     * @param bool $mustunderstand
     * @param string $actor
     * @param string $namespace the namespace
     */
    public function __construct($mustunderstand = false, $actor = null, $namespace = self::NS_WSSE)
    {
        parent::__construct(self::NAME, $namespace);
        /**
         * Sets attributes
         */
        if ($mustunderstand === true) {
            $this->setAttribute(self::ATTRIBUTE_MUST_UNDERSTAND, $mustunderstand);
        }
        if (!empty($actor)) {
            $this->setAttribute(self::ATTRIBUTE_ACTOR, $actor);
        }
    }
    /**
     * @return UsernameToken
     */
    public function getUsernameToken()
    {
        return $this->usernameToken;
    }
    /**
     * @param UsernameToken $usernameToken
     * @return Security
     */
    public function setUsernameToken(UsernameToken $usernameToken)
    {
        $this->usernameToken = $usernameToken;
        return $this;
    }
    /**
     * @return Timestamp
     */
    public function getTimestamp()
    {
        return $this->timestamp;
    }
    /**
     * @param Timestamp $timestamp
     * @return Security
     */
    public function setTimestamp(Timestamp $timestamp)
    {
        $this->timestamp = $timestamp;
        return $this;
    }
    /**
     * Overrides methods in order to set the values
     * @param bool $asDomElement returns elements as a DOMElement or as a string
     * @return string
     */
    protected function __toSend($asDomElement = false)
    {
        $this->setValue(array(
            $this->getUsernameToken(),
            $this->getTimestamp(),
        ));
        return parent::__toSend($asDomElement);
    }
}
{'fraction_non_alphanumeric': 0.11379529561347743, 'fraction_numerical': 0.0, 'mean_word_length': 2.107307439104674, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 21, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '61853', 'n_tokens_mistral': 1333, 'n_tokens_neox': 1319, 'n_words': 305}