<?php

declare(strict_types=1);

namespace Drupal\netforum\xWeb\Generated\StructType;

use InvalidArgumentException;
use WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for FundraisingGift_Org_Business_Phone_XRef_DataObjectType
 * StructType
 * @subpackage Structs
 * @author Drupal NetForum xWeb PHP SDK Generator
 * @version 1.0.0
 * @license GPL-2.0-or-later https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
 * @see https://www.drupal.org/project/netforum
 * @generatedDate 2025-08-05
 * @generatedRelease Official
 * @generatedNetForumVersion 37
 */
#[\AllowDynamicProperties]
class FundraisingGift_Org_Business_Phone_XRef_DataObjectType extends AbstractStructBase
{
    /**
     * The cp6__cph_key
     * Meta information extracted from the WSDL
     * - documentation: Unique Key. | Avectra netForum defined simpleType.
     * - base: s:string
     * - maxOccurs: 1
     * - minOccurs: 0
     * - nillable: true
     * - pattern: [{]?[0-9a-fA-F]{8}[\-]?([0-9a-fA-F]{4}[\-]?){3}[0-9a-fA-F]{12}[}]?
     * @var string|null
     */
    protected ?string $cp6__cph_key = null;
    /**
     * The cp6__cph_cst_key
     * Meta information extracted from the WSDL
     * - documentation: Customer. | Avectra netForum defined simpleType.
     * - base: s:string
     * - maxOccurs: 1
     * - minOccurs: 0
     * - nillable: true
     * - pattern: [{]?[0-9a-fA-F]{8}[\-]?([0-9a-fA-F]{4}[\-]?){3}[0-9a-fA-F]{12}[}]?
     * @var string|null
     */
    protected ?string $cp6__cph_cst_key = null;
    /**
     * The cp6__cph_phn_key
     * Meta information extracted from the WSDL
     * - documentation: Phone. | Avectra netForum defined simpleType.
     * - base: s:string
     * - maxOccurs: 1
     * - minOccurs: 0
     * - nillable: true
     * - pattern: [{]?[0-9a-fA-F]{8}[\-]?([0-9a-fA-F]{4}[\-]?){3}[0-9a-fA-F]{12}[}]?
     * @var string|null
     */
    protected ?string $cp6__cph_phn_key = null;
    /**
     * The cp6__cph_pht_key
     * Meta information extracted from the WSDL
     * - documentation: Phone Type.This element has a default value of 'f2110a0a-9c30-40a3-8842-54dc0d05d415'. | Avectra netForum defined simpleType.
     * - base: s:string
     * - maxOccurs: 1
     * - minOccurs: 0
     * - nillable: true
     * - pattern: [{]?[0-9a-fA-F]{8}[\-]?([0-9a-fA-F]{4}[\-]?){3}[0-9a-fA-F]{12}[}]?
     * @var string|null
     */
    protected ?string $cp6__cph_pht_key = null;
    /**
     * The cp6__cph_cst_link_key
     * Meta information extracted from the WSDL
     * - documentation: Linked Phone Customer. | Avectra netForum defined simpleType.
     * - base: s:string
     * - maxOccurs: 1
     * - minOccurs: 0
     * - nillable: true
     * - pattern: [{]?[0-9a-fA-F]{8}[\-]?([0-9a-fA-F]{4}[\-]?){3}[0-9a-fA-F]{12}[}]?
     * @var string|null
     */
    protected ?string $cp6__cph_cst_link_key = null;
    /**
     * The cp6__cph_add_user
     * Meta information extracted from the WSDL
     * - documentation: Add User. | Avectra netForum defined simpleType.
     * - base: s:string
     * - maxLength: 64
     * - maxOccurs: 1
     * - minOccurs: 0
     * - nillable: true
     * @var string|null
     */
    protected ?string $cp6__cph_add_user = null;
    /**
     * The cp6__cph_add_date
     * Meta information extracted from the WSDL
     * - documentation: Add Date. | Avectra netForum defined simpleType.
     * - base: s:string
     * - maxOccurs: 1
     * - minOccurs: 0
     * - nillable: true
     * @var string|null
     */
    protected ?string $cp6__cph_add_date = null;
    /**
     * The cp6__cph_change_user
     * Meta information extracted from the WSDL
     * - documentation: Change User. | Avectra netForum defined simpleType.
     * - base: s:string
     * - maxLength: 64
     * - maxOccurs: 1
     * - minOccurs: 0
     * - nillable: true
     * @var string|null
     */
    protected ?string $cp6__cph_change_user = null;
    /**
     * The cp6__cph_change_date
     * Meta information extracted from the WSDL
     * - documentation: Change Date. | Avectra netForum defined simpleType.
     * - base: s:string
     * - maxOccurs: 1
     * - minOccurs: 0
     * - nillable: true
     * @var string|null
     */
    protected ?string $cp6__cph_change_date = null;
    /**
     * The cp6__cph_delete_flag
     * Meta information extracted from the WSDL
     * - documentation: Delete Flag. | Avectra netForum defined simpleType.
     * - base: s:unsignedByte
     * - maxInclusive: 255
     * - maxOccurs: 1
     * - minInclusive: 0
     * - minOccurs: 0
     * - nillable: true
     * @var string|null
     */
    protected ?string $cp6__cph_delete_flag = null;
    /**
     * The cp6__cph_key_ext
     * Meta information extracted from the WSDL
     * - documentation: Extender Key. | Avectra netForum defined simpleType.
     * - base: s:string
     * - maxOccurs: 1
     * - minOccurs: 0
     * - nillable: true
     * - pattern: [{]?[0-9a-fA-F]{8}[\-]?([0-9a-fA-F]{4}[\-]?){3}[0-9a-fA-F]{12}[}]?
     * @var string|null
     */
    protected ?string $cp6__cph_key_ext = null;
    /**
     * The cp6__cph_unlisted_flag
     * Meta information extracted from the WSDL
     * - documentation: Unlisted Phone. | Avectra netForum defined simpleType.
     * - base: s:unsignedByte
     * - maxInclusive: 255
     * - maxOccurs: 1
     * - minInclusive: 0
     * - minOccurs: 0
     * - nillable: true
     * @var string|null
     */
    protected ?string $cp6__cph_unlisted_flag = null;
    /**
     * The cp6__cph_phn_number_complete
     * Meta information extracted from the WSDL
     * - documentation: Phone Number. | Avectra netForum defined simpleType.
     * - base: s:string
     * - maxLength: 55
     * - maxOccurs: 1
     * - minOccurs: 0
     * - nillable: true
     * @var string|null
     */
    protected ?string $cp6__cph_phn_number_complete = null;
    /**
     * The cp6__cph_extension
     * Meta information extracted from the WSDL
     * - documentation: ph. ext.. | Avectra netForum defined simpleType.
     * - base: s:string
     * - maxLength: 10
     * - maxOccurs: 1
     * - minOccurs: 0
     * - nillable: true
     * @var string|null
     */
    protected ?string $cp6__cph_extension = null;
    /**
     * The cp6__cph_entity_key
     * Meta information extracted from the WSDL
     * - documentation: Entity Key. | Avectra netForum defined simpleType.
     * - base: s:string
     * - maxOccurs: 1
     * - minOccurs: 0
     * - nillable: true
     * - pattern: [{]?[0-9a-fA-F]{8}[\-]?([0-9a-fA-F]{4}[\-]?){3}[0-9a-fA-F]{12}[}]?
     * @var string|null
     */
    protected ?string $cp6__cph_entity_key = null;
    /**
     * The cp6__cph_primary
     * Meta information extracted from the WSDL
     * - documentation: Primary.This element has a default value of '0'. This field is NOT a Data Field and is Read-Only. | Avectra netForum defined simpleType.
     * - base: s:unsignedByte
     * - maxInclusive: 255
     * - maxOccurs: 1
     * - minInclusive: 0
     * - minOccurs: 0
     * - nillable: true
     * @var string|null
     */
    protected ?string $cp6__cph_primary = null;
    /**
     * The cp6__cph_owner
     * Meta information extracted from the WSDL
     * - documentation: Phone Owner.This element has a default value of '0'. This field is NOT a Data Field and is Read-Only. | Avectra netForum defined simpleType.
     * - base: s:unsignedByte
     * - maxInclusive: 255
     * - maxOccurs: 1
     * - minInclusive: 0
     * - minOccurs: 0
     * - nillable: true
     * @var string|null
     */
    protected ?string $cp6__cph_owner = null;
    /**
     * The cp6__cph_sms
     * Meta information extracted from the WSDL
     * - documentation: Preferred SMS/Text Number.This element has a default value of '0'. This field is NOT a Data Field and is Read-Only. | Avectra netForum defined simpleType.
     * - base: s:unsignedByte
     * - maxInclusive: 255
     * - maxOccurs: 1
     * - minInclusive: 0
     * - minOccurs: 0
     * - nillable: true
     * @var string|null
     */
    protected ?string $cp6__cph_sms = null;
    /**
     * The cp6__cph_PhoneLinkingDropDownList
     * Meta information extracted from the WSDL
     * - documentation: PhoneLinkingDropDownList.This field is NOT a Data Field and is Read-Only. | Avectra netForum defined simpleType.
     * - base: s:string
     * - maxOccurs: 1
     * - minOccurs: 0
     * - nillable: true
     * @var string|null
     */
    protected ?string $cp6__cph_PhoneLinkingDropDownList = null;
    /**
     * Constructor method for FundraisingGift_Org_Business_Phone_XRef_DataObjectType
     * @uses FundraisingGift_Org_Business_Phone_XRef_DataObjectType::setCp6__cph_key()
     * @uses FundraisingGift_Org_Business_Phone_XRef_DataObjectType::setCp6__cph_cst_key()
     * @uses FundraisingGift_Org_Business_Phone_XRef_DataObjectType::setCp6__cph_phn_key()
     * @uses FundraisingGift_Org_Business_Phone_XRef_DataObjectType::setCp6__cph_pht_key()
     * @uses FundraisingGift_Org_Business_Phone_XRef_DataObjectType::setCp6__cph_cst_link_key()
     * @uses FundraisingGift_Org_Business_Phone_XRef_DataObjectType::setCp6__cph_add_user()
     * @uses FundraisingGift_Org_Business_Phone_XRef_DataObjectType::setCp6__cph_add_date()
     * @uses FundraisingGift_Org_Business_Phone_XRef_DataObjectType::setCp6__cph_change_user()
     * @uses FundraisingGift_Org_Business_Phone_XRef_DataObjectType::setCp6__cph_change_date()
     * @uses FundraisingGift_Org_Business_Phone_XRef_DataObjectType::setCp6__cph_delete_flag()
     * @uses FundraisingGift_Org_Business_Phone_XRef_DataObjectType::setCp6__cph_key_ext()
     * @uses FundraisingGift_Org_Business_Phone_XRef_DataObjectType::setCp6__cph_unlisted_flag()
     * @uses FundraisingGift_Org_Business_Phone_XRef_DataObjectType::setCp6__cph_phn_number_complete()
     * @uses FundraisingGift_Org_Business_Phone_XRef_DataObjectType::setCp6__cph_extension()
     * @uses FundraisingGift_Org_Business_Phone_XRef_DataObjectType::setCp6__cph_entity_key()
     * @uses FundraisingGift_Org_Business_Phone_XRef_DataObjectType::setCp6__cph_primary()
     * @uses FundraisingGift_Org_Business_Phone_XRef_DataObjectType::setCp6__cph_owner()
     * @uses FundraisingGift_Org_Business_Phone_XRef_DataObjectType::setCp6__cph_sms()
     * @uses FundraisingGift_Org_Business_Phone_XRef_DataObjectType::setCp6__cph_PhoneLinkingDropDownList()
     * @param string $cp6__cph_key
     * @param string $cp6__cph_cst_key
     * @param string $cp6__cph_phn_key
     * @param string $cp6__cph_pht_key
     * @param string $cp6__cph_cst_link_key
     * @param string $cp6__cph_add_user
     * @param string $cp6__cph_add_date
     * @param string $cp6__cph_change_user
     * @param string $cp6__cph_change_date
     * @param string $cp6__cph_delete_flag
     * @param string $cp6__cph_key_ext
     * @param string $cp6__cph_unlisted_flag
     * @param string $cp6__cph_phn_number_complete
     * @param string $cp6__cph_extension
     * @param string $cp6__cph_entity_key
     * @param string $cp6__cph_primary
     * @param string $cp6__cph_owner
     * @param string $cp6__cph_sms
     * @param string $cp6__cph_PhoneLinkingDropDownList
     */
    public function __construct(?string $cp6__cph_key = null, ?string $cp6__cph_cst_key = null, ?string $cp6__cph_phn_key = null, ?string $cp6__cph_pht_key = null, ?string $cp6__cph_cst_link_key = null, ?string $cp6__cph_add_user = null, ?string $cp6__cph_add_date = null, ?string $cp6__cph_change_user = null, ?string $cp6__cph_change_date = null, ?string $cp6__cph_delete_flag = null, ?string $cp6__cph_key_ext = null, ?string $cp6__cph_unlisted_flag = null, ?string $cp6__cph_phn_number_complete = null, ?string $cp6__cph_extension = null, ?string $cp6__cph_entity_key = null, ?string $cp6__cph_primary = null, ?string $cp6__cph_owner = null, ?string $cp6__cph_sms = null, ?string $cp6__cph_PhoneLinkingDropDownList = null)
    {
        $this
            ->setCp6__cph_key($cp6__cph_key)
            ->setCp6__cph_cst_key($cp6__cph_cst_key)
            ->setCp6__cph_phn_key($cp6__cph_phn_key)
            ->setCp6__cph_pht_key($cp6__cph_pht_key)
            ->setCp6__cph_cst_link_key($cp6__cph_cst_link_key)
            ->setCp6__cph_add_user($cp6__cph_add_user)
            ->setCp6__cph_add_date($cp6__cph_add_date)
            ->setCp6__cph_change_user($cp6__cph_change_user)
            ->setCp6__cph_change_date($cp6__cph_change_date)
            ->setCp6__cph_delete_flag($cp6__cph_delete_flag)
            ->setCp6__cph_key_ext($cp6__cph_key_ext)
            ->setCp6__cph_unlisted_flag($cp6__cph_unlisted_flag)
            ->setCp6__cph_phn_number_complete($cp6__cph_phn_number_complete)
            ->setCp6__cph_extension($cp6__cph_extension)
            ->setCp6__cph_entity_key($cp6__cph_entity_key)
            ->setCp6__cph_primary($cp6__cph_primary)
            ->setCp6__cph_owner($cp6__cph_owner)
            ->setCp6__cph_sms($cp6__cph_sms)
            ->setCp6__cph_PhoneLinkingDropDownList($cp6__cph_PhoneLinkingDropDownList);
    }
    /**
     * Get cp6__cph_key value
     * An additional test has been added (isset) before returning the property value as
     * this property may have been unset before, due to the fact that this property is
     * removable from the request (nillable=true+minOccurs=0)
     * @return string|null
     */
    public function getCp6__cph_key(): ?string
    {
        return $this->cp6__cph_key ?? null;
    }
    /**
     * Set cp6__cph_key value
     * This property is removable from request (nillable=true+minOccurs=0), therefore
     * if the value assigned to this property is null, it is removed from this object
     * @param string $cp6__cph_key
     * @return \Drupal\netforum\xWeb\Generated\StructType\FundraisingGift_Org_Business_Phone_XRef_DataObjectType
     */
    public function setCp6__cph_key(?string $cp6__cph_key = null): self
    {
        // validation for constraint: string
        if (!is_null($cp6__cph_key) && !is_string($cp6__cph_key)) {
            throw new InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($cp6__cph_key, true), gettype($cp6__cph_key)), __LINE__);
        }
        // validation for constraint: pattern([{]?[0-9a-fA-F]{8}[\-]?([0-9a-fA-F]{4}[\-]?){3}[0-9a-fA-F]{12}[}]?)
        if (!is_null($cp6__cph_key) && !preg_match('/[{]?[0-9a-fA-F]{8}[\\-]?([0-9a-fA-F]{4}[\\-]?){3}[0-9a-fA-F]{12}[}]?/', (string) $cp6__cph_key)) {
            throw new InvalidArgumentException(sprintf('Invalid value %s, please provide a literal that is among the set of character sequences denoted by the regular expression /[{]?[0-9a-fA-F]{8}[\\-]?([0-9a-fA-F]{4}[\\-]?){3}[0-9a-fA-F]{12}[}]?/', var_export($cp6__cph_key, true)), __LINE__);
        }
        if (is_null($cp6__cph_key) || (is_array($cp6__cph_key) && empty($cp6__cph_key))) {
            unset($this->cp6__cph_key);
        } else {
            $this->cp6__cph_key = $cp6__cph_key;
        }
        
        return $this;
    }
    /**
     * Get cp6__cph_cst_key value
     * An additional test has been added (isset) before returning the property value as
     * this property may have been unset before, due to the fact that this property is
     * removable from the request (nillable=true+minOccurs=0)
     * @return string|null
     */
    public function getCp6__cph_cst_key(): ?string
    {
        return $this->cp6__cph_cst_key ?? null;
    }
    /**
     * Set cp6__cph_cst_key value
     * This property is removable from request (nillable=true+minOccurs=0), therefore
     * if the value assigned to this property is null, it is removed from this object
     * @param string $cp6__cph_cst_key
     * @return \Drupal\netforum\xWeb\Generated\StructType\FundraisingGift_Org_Business_Phone_XRef_DataObjectType
     */
    public function setCp6__cph_cst_key(?string $cp6__cph_cst_key = null): self
    {
        // validation for constraint: string
        if (!is_null($cp6__cph_cst_key) && !is_string($cp6__cph_cst_key)) {
            throw new InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($cp6__cph_cst_key, true), gettype($cp6__cph_cst_key)), __LINE__);
        }
        // validation for constraint: pattern([{]?[0-9a-fA-F]{8}[\-]?([0-9a-fA-F]{4}[\-]?){3}[0-9a-fA-F]{12}[}]?)
        if (!is_null($cp6__cph_cst_key) && !preg_match('/[{]?[0-9a-fA-F]{8}[\\-]?([0-9a-fA-F]{4}[\\-]?){3}[0-9a-fA-F]{12}[}]?/', (string) $cp6__cph_cst_key)) {
            throw new InvalidArgumentException(sprintf('Invalid value %s, please provide a literal that is among the set of character sequences denoted by the regular expression /[{]?[0-9a-fA-F]{8}[\\-]?([0-9a-fA-F]{4}[\\-]?){3}[0-9a-fA-F]{12}[}]?/', var_export($cp6__cph_cst_key, true)), __LINE__);
        }
        if (is_null($cp6__cph_cst_key) || (is_array($cp6__cph_cst_key) && empty($cp6__cph_cst_key))) {
            unset($this->cp6__cph_cst_key);
        } else {
            $this->cp6__cph_cst_key = $cp6__cph_cst_key;
        }
        
        return $this;
    }
    /**
     * Get cp6__cph_phn_key value
     * An additional test has been added (isset) before returning the property value as
     * this property may have been unset before, due to the fact that this property is
     * removable from the request (nillable=true+minOccurs=0)
     * @return string|null
     */
    public function getCp6__cph_phn_key(): ?string
    {
        return $this->cp6__cph_phn_key ?? null;
    }
    /**
     * Set cp6__cph_phn_key value
     * This property is removable from request (nillable=true+minOccurs=0), therefore
     * if the value assigned to this property is null, it is removed from this object
     * @param string $cp6__cph_phn_key
     * @return \Drupal\netforum\xWeb\Generated\StructType\FundraisingGift_Org_Business_Phone_XRef_DataObjectType
     */
    public function setCp6__cph_phn_key(?string $cp6__cph_phn_key = null): self
    {
        // validation for constraint: string
        if (!is_null($cp6__cph_phn_key) && !is_string($cp6__cph_phn_key)) {
            throw new InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($cp6__cph_phn_key, true), gettype($cp6__cph_phn_key)), __LINE__);
        }
        // validation for constraint: pattern([{]?[0-9a-fA-F]{8}[\-]?([0-9a-fA-F]{4}[\-]?){3}[0-9a-fA-F]{12}[}]?)
        if (!is_null($cp6__cph_phn_key) && !preg_match('/[{]?[0-9a-fA-F]{8}[\\-]?([0-9a-fA-F]{4}[\\-]?){3}[0-9a-fA-F]{12}[}]?/', (string) $cp6__cph_phn_key)) {
            throw new InvalidArgumentException(sprintf('Invalid value %s, please provide a literal that is among the set of character sequences denoted by the regular expression /[{]?[0-9a-fA-F]{8}[\\-]?([0-9a-fA-F]{4}[\\-]?){3}[0-9a-fA-F]{12}[}]?/', var_export($cp6__cph_phn_key, true)), __LINE__);
        }
        if (is_null($cp6__cph_phn_key) || (is_array($cp6__cph_phn_key) && empty($cp6__cph_phn_key))) {
            unset($this->cp6__cph_phn_key);
        } else {
            $this->cp6__cph_phn_key = $cp6__cph_phn_key;
        }
        
        return $this;
    }
    /**
     * Get cp6__cph_pht_key value
     * An additional test has been added (isset) before returning the property value as
     * this property may have been unset before, due to the fact that this property is
     * removable from the request (nillable=true+minOccurs=0)
     * @return string|null
     */
    public function getCp6__cph_pht_key(): ?string
    {
        return $this->cp6__cph_pht_key ?? null;
    }
    /**
     * Set cp6__cph_pht_key value
     * This property is removable from request (nillable=true+minOccurs=0), therefore
     * if the value assigned to this property is null, it is removed from this object
     * @param string $cp6__cph_pht_key
     * @return \Drupal\netforum\xWeb\Generated\StructType\FundraisingGift_Org_Business_Phone_XRef_DataObjectType
     */
    public function setCp6__cph_pht_key(?string $cp6__cph_pht_key = null): self
    {
        // validation for constraint: string
        if (!is_null($cp6__cph_pht_key) && !is_string($cp6__cph_pht_key)) {
            throw new InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($cp6__cph_pht_key, true), gettype($cp6__cph_pht_key)), __LINE__);
        }
        // validation for constraint: pattern([{]?[0-9a-fA-F]{8}[\-]?([0-9a-fA-F]{4}[\-]?){3}[0-9a-fA-F]{12}[}]?)
        if (!is_null($cp6__cph_pht_key) && !preg_match('/[{]?[0-9a-fA-F]{8}[\\-]?([0-9a-fA-F]{4}[\\-]?){3}[0-9a-fA-F]{12}[}]?/', (string) $cp6__cph_pht_key)) {
            throw new InvalidArgumentException(sprintf('Invalid value %s, please provide a literal that is among the set of character sequences denoted by the regular expression /[{]?[0-9a-fA-F]{8}[\\-]?([0-9a-fA-F]{4}[\\-]?){3}[0-9a-fA-F]{12}[}]?/', var_export($cp6__cph_pht_key, true)), __LINE__);
        }
        if (is_null($cp6__cph_pht_key) || (is_array($cp6__cph_pht_key) && empty($cp6__cph_pht_key))) {
            unset($this->cp6__cph_pht_key);
        } else {
            $this->cp6__cph_pht_key = $cp6__cph_pht_key;
        }
        
        return $this;
    }
    /**
     * Get cp6__cph_cst_link_key value
     * An additional test has been added (isset) before returning the property value as
     * this property may have been unset before, due to the fact that this property is
     * removable from the request (nillable=true+minOccurs=0)
     * @return string|null
     */
    public function getCp6__cph_cst_link_key(): ?string
    {
        return $this->cp6__cph_cst_link_key ?? null;
    }
    /**
     * Set cp6__cph_cst_link_key value
     * This property is removable from request (nillable=true+minOccurs=0), therefore
     * if the value assigned to this property is null, it is removed from this object
     * @param string $cp6__cph_cst_link_key
     * @return \Drupal\netforum\xWeb\Generated\StructType\FundraisingGift_Org_Business_Phone_XRef_DataObjectType
     */
    public function setCp6__cph_cst_link_key(?string $cp6__cph_cst_link_key = null): self
    {
        // validation for constraint: string
        if (!is_null($cp6__cph_cst_link_key) && !is_string($cp6__cph_cst_link_key)) {
            throw new InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($cp6__cph_cst_link_key, true), gettype($cp6__cph_cst_link_key)), __LINE__);
        }
        // validation for constraint: pattern([{]?[0-9a-fA-F]{8}[\-]?([0-9a-fA-F]{4}[\-]?){3}[0-9a-fA-F]{12}[}]?)
        if (!is_null($cp6__cph_cst_link_key) && !preg_match('/[{]?[0-9a-fA-F]{8}[\\-]?([0-9a-fA-F]{4}[\\-]?){3}[0-9a-fA-F]{12}[}]?/', (string) $cp6__cph_cst_link_key)) {
            throw new InvalidArgumentException(sprintf('Invalid value %s, please provide a literal that is among the set of character sequences denoted by the regular expression /[{]?[0-9a-fA-F]{8}[\\-]?([0-9a-fA-F]{4}[\\-]?){3}[0-9a-fA-F]{12}[}]?/', var_export($cp6__cph_cst_link_key, true)), __LINE__);
        }
        if (is_null($cp6__cph_cst_link_key) || (is_array($cp6__cph_cst_link_key) && empty($cp6__cph_cst_link_key))) {
            unset($this->cp6__cph_cst_link_key);
        } else {
            $this->cp6__cph_cst_link_key = $cp6__cph_cst_link_key;
        }
        
        return $this;
    }
    /**
     * Get cp6__cph_add_user value
     * An additional test has been added (isset) before returning the property value as
     * this property may have been unset before, due to the fact that this property is
     * removable from the request (nillable=true+minOccurs=0)
     * @return string|null
     */
    public function getCp6__cph_add_user(): ?string
    {
        return $this->cp6__cph_add_user ?? null;
    }
    /**
     * Set cp6__cph_add_user value
     * This property is removable from request (nillable=true+minOccurs=0), therefore
     * if the value assigned to this property is null, it is removed from this object
     * @param string $cp6__cph_add_user
     * @return \Drupal\netforum\xWeb\Generated\StructType\FundraisingGift_Org_Business_Phone_XRef_DataObjectType
     */
    public function setCp6__cph_add_user(?string $cp6__cph_add_user = null): self
    {
        // validation for constraint: string
        if (!is_null($cp6__cph_add_user) && !is_string($cp6__cph_add_user)) {
            throw new InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($cp6__cph_add_user, true), gettype($cp6__cph_add_user)), __LINE__);
        }
        // validation for constraint: maxLength(64)
        if (!is_null($cp6__cph_add_user) && mb_strlen((string) $cp6__cph_add_user) > 64) {
            throw new InvalidArgumentException(sprintf('Invalid length of %s, the number of characters/octets contained by the literal must be less than or equal to 64', mb_strlen((string) $cp6__cph_add_user)), __LINE__);
        }
        if (is_null($cp6__cph_add_user) || (is_array($cp6__cph_add_user) && empty($cp6__cph_add_user))) {
            unset($this->cp6__cph_add_user);
        } else {
            $this->cp6__cph_add_user = $cp6__cph_add_user;
        }
        
        return $this;
    }
    /**
     * Get cp6__cph_add_date value
     * An additional test has been added (isset) before returning the property value as
     * this property may have been unset before, due to the fact that this property is
     * removable from the request (nillable=true+minOccurs=0)
     * @return string|null
     */
    public function getCp6__cph_add_date(): ?string
    {
        return $this->cp6__cph_add_date ?? null;
    }
    /**
     * Set cp6__cph_add_date value
     * This property is removable from request (nillable=true+minOccurs=0), therefore
     * if the value assigned to this property is null, it is removed from this object
     * @param string $cp6__cph_add_date
     * @return \Drupal\netforum\xWeb\Generated\StructType\FundraisingGift_Org_Business_Phone_XRef_DataObjectType
     */
    public function setCp6__cph_add_date(?string $cp6__cph_add_date = null): self
    {
        // validation for constraint: string
        if (!is_null($cp6__cph_add_date) && !is_string($cp6__cph_add_date)) {
            throw new InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($cp6__cph_add_date, true), gettype($cp6__cph_add_date)), __LINE__);
        }
        if (is_null($cp6__cph_add_date) || (is_array($cp6__cph_add_date) && empty($cp6__cph_add_date))) {
            unset($this->cp6__cph_add_date);
        } else {
            $this->cp6__cph_add_date = $cp6__cph_add_date;
        }
        
        return $this;
    }
    /**
     * Get cp6__cph_change_user value
     * An additional test has been added (isset) before returning the property value as
     * this property may have been unset before, due to the fact that this property is
     * removable from the request (nillable=true+minOccurs=0)
     * @return string|null
     */
    public function getCp6__cph_change_user(): ?string
    {
        return $this->cp6__cph_change_user ?? null;
    }
    /**
     * Set cp6__cph_change_user value
     * This property is removable from request (nillable=true+minOccurs=0), therefore
     * if the value assigned to this property is null, it is removed from this object
     * @param string $cp6__cph_change_user
     * @return \Drupal\netforum\xWeb\Generated\StructType\FundraisingGift_Org_Business_Phone_XRef_DataObjectType
     */
    public function setCp6__cph_change_user(?string $cp6__cph_change_user = null): self
    {
        // validation for constraint: string
        if (!is_null($cp6__cph_change_user) && !is_string($cp6__cph_change_user)) {
            throw new InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($cp6__cph_change_user, true), gettype($cp6__cph_change_user)), __LINE__);
        }
        // validation for constraint: maxLength(64)
        if (!is_null($cp6__cph_change_user) && mb_strlen((string) $cp6__cph_change_user) > 64) {
            throw new InvalidArgumentException(sprintf('Invalid length of %s, the number of characters/octets contained by the literal must be less than or equal to 64', mb_strlen((string) $cp6__cph_change_user)), __LINE__);
        }
        if (is_null($cp6__cph_change_user) || (is_array($cp6__cph_change_user) && empty($cp6__cph_change_user))) {
            unset($this->cp6__cph_change_user);
        } else {
            $this->cp6__cph_change_user = $cp6__cph_change_user;
        }
        
        return $this;
    }
    /**
     * Get cp6__cph_change_date value
     * An additional test has been added (isset) before returning the property value as
     * this property may have been unset before, due to the fact that this property is
     * removable from the request (nillable=true+minOccurs=0)
     * @return string|null
     */
    public function getCp6__cph_change_date(): ?string
    {
        return $this->cp6__cph_change_date ?? null;
    }
    /**
     * Set cp6__cph_change_date value
     * This property is removable from request (nillable=true+minOccurs=0), therefore
     * if the value assigned to this property is null, it is removed from this object
     * @param string $cp6__cph_change_date
     * @return \Drupal\netforum\xWeb\Generated\StructType\FundraisingGift_Org_Business_Phone_XRef_DataObjectType
     */
    public function setCp6__cph_change_date(?string $cp6__cph_change_date = null): self
    {
        // validation for constraint: string
        if (!is_null($cp6__cph_change_date) && !is_string($cp6__cph_change_date)) {
            throw new InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($cp6__cph_change_date, true), gettype($cp6__cph_change_date)), __LINE__);
        }
        if (is_null($cp6__cph_change_date) || (is_array($cp6__cph_change_date) && empty($cp6__cph_change_date))) {
            unset($this->cp6__cph_change_date);
        } else {
            $this->cp6__cph_change_date = $cp6__cph_change_date;
        }
        
        return $this;
    }
    /**
     * Get cp6__cph_delete_flag value
     * An additional test has been added (isset) before returning the property value as
     * this property may have been unset before, due to the fact that this property is
     * removable from the request (nillable=true+minOccurs=0)
     * @return string|null
     */
    public function getCp6__cph_delete_flag(): ?string
    {
        return $this->cp6__cph_delete_flag ?? null;
    }
    /**
     * Set cp6__cph_delete_flag value
     * This property is removable from request (nillable=true+minOccurs=0), therefore
     * if the value assigned to this property is null, it is removed from this object
     * @param string $cp6__cph_delete_flag
     * @return \Drupal\netforum\xWeb\Generated\StructType\FundraisingGift_Org_Business_Phone_XRef_DataObjectType
     */
    public function setCp6__cph_delete_flag(?string $cp6__cph_delete_flag = null): self
    {
        // validation for constraint: string
        if (!is_null($cp6__cph_delete_flag) && !is_string($cp6__cph_delete_flag)) {
            throw new InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($cp6__cph_delete_flag, true), gettype($cp6__cph_delete_flag)), __LINE__);
        }
        // validation for constraint: maxInclusive(255)
        if (!is_null($cp6__cph_delete_flag) && $cp6__cph_delete_flag > 255) {
            throw new InvalidArgumentException(sprintf('Invalid value %s, the value must be numerically less than or equal to 255', var_export($cp6__cph_delete_flag, true)), __LINE__);
        }
        // validation for constraint: minInclusive
        if (!is_null($cp6__cph_delete_flag) && $cp6__cph_delete_flag < 0) {
            throw new InvalidArgumentException(sprintf('Invalid value %s, the value must be numerically greater than or equal to 0', var_export($cp6__cph_delete_flag, true)), __LINE__);
        }
        if (is_null($cp6__cph_delete_flag) || (is_array($cp6__cph_delete_flag) && empty($cp6__cph_delete_flag))) {
            unset($this->cp6__cph_delete_flag);
        } else {
            $this->cp6__cph_delete_flag = $cp6__cph_delete_flag;
        }
        
        return $this;
    }
    /**
     * Get cp6__cph_key_ext value
     * An additional test has been added (isset) before returning the property value as
     * this property may have been unset before, due to the fact that this property is
     * removable from the request (nillable=true+minOccurs=0)
     * @return string|null
     */
    public function getCp6__cph_key_ext(): ?string
    {
        return $this->cp6__cph_key_ext ?? null;
    }
    /**
     * Set cp6__cph_key_ext value
     * This property is removable from request (nillable=true+minOccurs=0), therefore
     * if the value assigned to this property is null, it is removed from this object
     * @param string $cp6__cph_key_ext
     * @return \Drupal\netforum\xWeb\Generated\StructType\FundraisingGift_Org_Business_Phone_XRef_DataObjectType
     */
    public function setCp6__cph_key_ext(?string $cp6__cph_key_ext = null): self
    {
        // validation for constraint: string
        if (!is_null($cp6__cph_key_ext) && !is_string($cp6__cph_key_ext)) {
            throw new InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($cp6__cph_key_ext, true), gettype($cp6__cph_key_ext)), __LINE__);
        }
        // validation for constraint: pattern([{]?[0-9a-fA-F]{8}[\-]?([0-9a-fA-F]{4}[\-]?){3}[0-9a-fA-F]{12}[}]?)
        if (!is_null($cp6__cph_key_ext) && !preg_match('/[{]?[0-9a-fA-F]{8}[\\-]?([0-9a-fA-F]{4}[\\-]?){3}[0-9a-fA-F]{12}[}]?/', (string) $cp6__cph_key_ext)) {
            throw new InvalidArgumentException(sprintf('Invalid value %s, please provide a literal that is among the set of character sequences denoted by the regular expression /[{]?[0-9a-fA-F]{8}[\\-]?([0-9a-fA-F]{4}[\\-]?){3}[0-9a-fA-F]{12}[}]?/', var_export($cp6__cph_key_ext, true)), __LINE__);
        }
        if (is_null($cp6__cph_key_ext) || (is_array($cp6__cph_key_ext) && empty($cp6__cph_key_ext))) {
            unset($this->cp6__cph_key_ext);
        } else {
            $this->cp6__cph_key_ext = $cp6__cph_key_ext;
        }
        
        return $this;
    }
    /**
     * Get cp6__cph_unlisted_flag value
     * An additional test has been added (isset) before returning the property value as
     * this property may have been unset before, due to the fact that this property is
     * removable from the request (nillable=true+minOccurs=0)
     * @return string|null
     */
    public function getCp6__cph_unlisted_flag(): ?string
    {
        return $this->cp6__cph_unlisted_flag ?? null;
    }
    /**
     * Set cp6__cph_unlisted_flag value
     * This property is removable from request (nillable=true+minOccurs=0), therefore
     * if the value assigned to this property is null, it is removed from this object
     * @param string $cp6__cph_unlisted_flag
     * @return \Drupal\netforum\xWeb\Generated\StructType\FundraisingGift_Org_Business_Phone_XRef_DataObjectType
     */
    public function setCp6__cph_unlisted_flag(?string $cp6__cph_unlisted_flag = null): self
    {
        // validation for constraint: string
        if (!is_null($cp6__cph_unlisted_flag) && !is_string($cp6__cph_unlisted_flag)) {
            throw new InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($cp6__cph_unlisted_flag, true), gettype($cp6__cph_unlisted_flag)), __LINE__);
        }
        // validation for constraint: maxInclusive(255)
        if (!is_null($cp6__cph_unlisted_flag) && $cp6__cph_unlisted_flag > 255) {
            throw new InvalidArgumentException(sprintf('Invalid value %s, the value must be numerically less than or equal to 255', var_export($cp6__cph_unlisted_flag, true)), __LINE__);
        }
        // validation for constraint: minInclusive
        if (!is_null($cp6__cph_unlisted_flag) && $cp6__cph_unlisted_flag < 0) {
            throw new InvalidArgumentException(sprintf('Invalid value %s, the value must be numerically greater than or equal to 0', var_export($cp6__cph_unlisted_flag, true)), __LINE__);
        }
        if (is_null($cp6__cph_unlisted_flag) || (is_array($cp6__cph_unlisted_flag) && empty($cp6__cph_unlisted_flag))) {
            unset($this->cp6__cph_unlisted_flag);
        } else {
            $this->cp6__cph_unlisted_flag = $cp6__cph_unlisted_flag;
        }
        
        return $this;
    }
    /**
     * Get cp6__cph_phn_number_complete value
     * An additional test has been added (isset) before returning the property value as
     * this property may have been unset before, due to the fact that this property is
     * removable from the request (nillable=true+minOccurs=0)
     * @return string|null
     */
    public function getCp6__cph_phn_number_complete(): ?string
    {
        return $this->cp6__cph_phn_number_complete ?? null;
    }
    /**
     * Set cp6__cph_phn_number_complete value
     * This property is removable from request (nillable=true+minOccurs=0), therefore
     * if the value assigned to this property is null, it is removed from this object
     * @param string $cp6__cph_phn_number_complete
     * @return \Drupal\netforum\xWeb\Generated\StructType\FundraisingGift_Org_Business_Phone_XRef_DataObjectType
     */
    public function setCp6__cph_phn_number_complete(?string $cp6__cph_phn_number_complete = null): self
    {
        // validation for constraint: string
        if (!is_null($cp6__cph_phn_number_complete) && !is_string($cp6__cph_phn_number_complete)) {
            throw new InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($cp6__cph_phn_number_complete, true), gettype($cp6__cph_phn_number_complete)), __LINE__);
        }
        // validation for constraint: maxLength(55)
        if (!is_null($cp6__cph_phn_number_complete) && mb_strlen((string) $cp6__cph_phn_number_complete) > 55) {
            throw new InvalidArgumentException(sprintf('Invalid length of %s, the number of characters/octets contained by the literal must be less than or equal to 55', mb_strlen((string) $cp6__cph_phn_number_complete)), __LINE__);
        }
        if (is_null($cp6__cph_phn_number_complete) || (is_array($cp6__cph_phn_number_complete) && empty($cp6__cph_phn_number_complete))) {
            unset($this->cp6__cph_phn_number_complete);
        } else {
            $this->cp6__cph_phn_number_complete = $cp6__cph_phn_number_complete;
        }
        
        return $this;
    }
    /**
     * Get cp6__cph_extension value
     * An additional test has been added (isset) before returning the property value as
     * this property may have been unset before, due to the fact that this property is
     * removable from the request (nillable=true+minOccurs=0)
     * @return string|null
     */
    public function getCp6__cph_extension(): ?string
    {
        return $this->cp6__cph_extension ?? null;
    }
    /**
     * Set cp6__cph_extension value
     * This property is removable from request (nillable=true+minOccurs=0), therefore
     * if the value assigned to this property is null, it is removed from this object
     * @param string $cp6__cph_extension
     * @return \Drupal\netforum\xWeb\Generated\StructType\FundraisingGift_Org_Business_Phone_XRef_DataObjectType
     */
    public function setCp6__cph_extension(?string $cp6__cph_extension = null): self
    {
        // validation for constraint: string
        if (!is_null($cp6__cph_extension) && !is_string($cp6__cph_extension)) {
            throw new InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($cp6__cph_extension, true), gettype($cp6__cph_extension)), __LINE__);
        }
        // validation for constraint: maxLength(10)
        if (!is_null($cp6__cph_extension) && mb_strlen((string) $cp6__cph_extension) > 10) {
            throw new InvalidArgumentException(sprintf('Invalid length of %s, the number of characters/octets contained by the literal must be less than or equal to 10', mb_strlen((string) $cp6__cph_extension)), __LINE__);
        }
        if (is_null($cp6__cph_extension) || (is_array($cp6__cph_extension) && empty($cp6__cph_extension))) {
            unset($this->cp6__cph_extension);
        } else {
            $this->cp6__cph_extension = $cp6__cph_extension;
        }
        
        return $this;
    }
    /**
     * Get cp6__cph_entity_key value
     * An additional test has been added (isset) before returning the property value as
     * this property may have been unset before, due to the fact that this property is
     * removable from the request (nillable=true+minOccurs=0)
     * @return string|null
     */
    public function getCp6__cph_entity_key(): ?string
    {
        return $this->cp6__cph_entity_key ?? null;
    }
    /**
     * Set cp6__cph_entity_key value
     * This property is removable from request (nillable=true+minOccurs=0), therefore
     * if the value assigned to this property is null, it is removed from this object
     * @param string $cp6__cph_entity_key
     * @return \Drupal\netforum\xWeb\Generated\StructType\FundraisingGift_Org_Business_Phone_XRef_DataObjectType
     */
    public function setCp6__cph_entity_key(?string $cp6__cph_entity_key = null): self
    {
        // validation for constraint: string
        if (!is_null($cp6__cph_entity_key) && !is_string($cp6__cph_entity_key)) {
            throw new InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($cp6__cph_entity_key, true), gettype($cp6__cph_entity_key)), __LINE__);
        }
        // validation for constraint: pattern([{]?[0-9a-fA-F]{8}[\-]?([0-9a-fA-F]{4}[\-]?){3}[0-9a-fA-F]{12}[}]?)
        if (!is_null($cp6__cph_entity_key) && !preg_match('/[{]?[0-9a-fA-F]{8}[\\-]?([0-9a-fA-F]{4}[\\-]?){3}[0-9a-fA-F]{12}[}]?/', (string) $cp6__cph_entity_key)) {
            throw new InvalidArgumentException(sprintf('Invalid value %s, please provide a literal that is among the set of character sequences denoted by the regular expression /[{]?[0-9a-fA-F]{8}[\\-]?([0-9a-fA-F]{4}[\\-]?){3}[0-9a-fA-F]{12}[}]?/', var_export($cp6__cph_entity_key, true)), __LINE__);
        }
        if (is_null($cp6__cph_entity_key) || (is_array($cp6__cph_entity_key) && empty($cp6__cph_entity_key))) {
            unset($this->cp6__cph_entity_key);
        } else {
            $this->cp6__cph_entity_key = $cp6__cph_entity_key;
        }
        
        return $this;
    }
    /**
     * Get cp6__cph_primary value
     * An additional test has been added (isset) before returning the property value as
     * this property may have been unset before, due to the fact that this property is
     * removable from the request (nillable=true+minOccurs=0)
     * @return string|null
     */
    public function getCp6__cph_primary(): ?string
    {
        return $this->cp6__cph_primary ?? null;
    }
    /**
     * Set cp6__cph_primary value
     * This property is removable from request (nillable=true+minOccurs=0), therefore
     * if the value assigned to this property is null, it is removed from this object
     * @param string $cp6__cph_primary
     * @return \Drupal\netforum\xWeb\Generated\StructType\FundraisingGift_Org_Business_Phone_XRef_DataObjectType
     */
    public function setCp6__cph_primary(?string $cp6__cph_primary = null): self
    {
        // validation for constraint: string
        if (!is_null($cp6__cph_primary) && !is_string($cp6__cph_primary)) {
            throw new InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($cp6__cph_primary, true), gettype($cp6__cph_primary)), __LINE__);
        }
        // validation for constraint: maxInclusive(255)
        if (!is_null($cp6__cph_primary) && $cp6__cph_primary > 255) {
            throw new InvalidArgumentException(sprintf('Invalid value %s, the value must be numerically less than or equal to 255', var_export($cp6__cph_primary, true)), __LINE__);
        }
        // validation for constraint: minInclusive
        if (!is_null($cp6__cph_primary) && $cp6__cph_primary < 0) {
            throw new InvalidArgumentException(sprintf('Invalid value %s, the value must be numerically greater than or equal to 0', var_export($cp6__cph_primary, true)), __LINE__);
        }
        if (is_null($cp6__cph_primary) || (is_array($cp6__cph_primary) && empty($cp6__cph_primary))) {
            unset($this->cp6__cph_primary);
        } else {
            $this->cp6__cph_primary = $cp6__cph_primary;
        }
        
        return $this;
    }
    /**
     * Get cp6__cph_owner value
     * An additional test has been added (isset) before returning the property value as
     * this property may have been unset before, due to the fact that this property is
     * removable from the request (nillable=true+minOccurs=0)
     * @return string|null
     */
    public function getCp6__cph_owner(): ?string
    {
        return $this->cp6__cph_owner ?? null;
    }
    /**
     * Set cp6__cph_owner value
     * This property is removable from request (nillable=true+minOccurs=0), therefore
     * if the value assigned to this property is null, it is removed from this object
     * @param string $cp6__cph_owner
     * @return \Drupal\netforum\xWeb\Generated\StructType\FundraisingGift_Org_Business_Phone_XRef_DataObjectType
     */
    public function setCp6__cph_owner(?string $cp6__cph_owner = null): self
    {
        // validation for constraint: string
        if (!is_null($cp6__cph_owner) && !is_string($cp6__cph_owner)) {
            throw new InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($cp6__cph_owner, true), gettype($cp6__cph_owner)), __LINE__);
        }
        // validation for constraint: maxInclusive(255)
        if (!is_null($cp6__cph_owner) && $cp6__cph_owner > 255) {
            throw new InvalidArgumentException(sprintf('Invalid value %s, the value must be numerically less than or equal to 255', var_export($cp6__cph_owner, true)), __LINE__);
        }
        // validation for constraint: minInclusive
        if (!is_null($cp6__cph_owner) && $cp6__cph_owner < 0) {
            throw new InvalidArgumentException(sprintf('Invalid value %s, the value must be numerically greater than or equal to 0', var_export($cp6__cph_owner, true)), __LINE__);
        }
        if (is_null($cp6__cph_owner) || (is_array($cp6__cph_owner) && empty($cp6__cph_owner))) {
            unset($this->cp6__cph_owner);
        } else {
            $this->cp6__cph_owner = $cp6__cph_owner;
        }
        
        return $this;
    }
    /**
     * Get cp6__cph_sms value
     * An additional test has been added (isset) before returning the property value as
     * this property may have been unset before, due to the fact that this property is
     * removable from the request (nillable=true+minOccurs=0)
     * @return string|null
     */
    public function getCp6__cph_sms(): ?string
    {
        return $this->cp6__cph_sms ?? null;
    }
    /**
     * Set cp6__cph_sms value
     * This property is removable from request (nillable=true+minOccurs=0), therefore
     * if the value assigned to this property is null, it is removed from this object
     * @param string $cp6__cph_sms
     * @return \Drupal\netforum\xWeb\Generated\StructType\FundraisingGift_Org_Business_Phone_XRef_DataObjectType
     */
    public function setCp6__cph_sms(?string $cp6__cph_sms = null): self
    {
        // validation for constraint: string
        if (!is_null($cp6__cph_sms) && !is_string($cp6__cph_sms)) {
            throw new InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($cp6__cph_sms, true), gettype($cp6__cph_sms)), __LINE__);
        }
        // validation for constraint: maxInclusive(255)
        if (!is_null($cp6__cph_sms) && $cp6__cph_sms > 255) {
            throw new InvalidArgumentException(sprintf('Invalid value %s, the value must be numerically less than or equal to 255', var_export($cp6__cph_sms, true)), __LINE__);
        }
        // validation for constraint: minInclusive
        if (!is_null($cp6__cph_sms) && $cp6__cph_sms < 0) {
            throw new InvalidArgumentException(sprintf('Invalid value %s, the value must be numerically greater than or equal to 0', var_export($cp6__cph_sms, true)), __LINE__);
        }
        if (is_null($cp6__cph_sms) || (is_array($cp6__cph_sms) && empty($cp6__cph_sms))) {
            unset($this->cp6__cph_sms);
        } else {
            $this->cp6__cph_sms = $cp6__cph_sms;
        }
        
        return $this;
    }
    /**
     * Get cp6__cph_PhoneLinkingDropDownList value
     * An additional test has been added (isset) before returning the property value as
     * this property may have been unset before, due to the fact that this property is
     * removable from the request (nillable=true+minOccurs=0)
     * @return string|null
     */
    public function getCp6__cph_PhoneLinkingDropDownList(): ?string
    {
        return $this->cp6__cph_PhoneLinkingDropDownList ?? null;
    }
    /**
     * Set cp6__cph_PhoneLinkingDropDownList value
     * This property is removable from request (nillable=true+minOccurs=0), therefore
     * if the value assigned to this property is null, it is removed from this object
     * @param string $cp6__cph_PhoneLinkingDropDownList
     * @return \Drupal\netforum\xWeb\Generated\StructType\FundraisingGift_Org_Business_Phone_XRef_DataObjectType
     */
    public function setCp6__cph_PhoneLinkingDropDownList(?string $cp6__cph_PhoneLinkingDropDownList = null): self
    {
        // validation for constraint: string
        if (!is_null($cp6__cph_PhoneLinkingDropDownList) && !is_string($cp6__cph_PhoneLinkingDropDownList)) {
            throw new InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($cp6__cph_PhoneLinkingDropDownList, true), gettype($cp6__cph_PhoneLinkingDropDownList)), __LINE__);
        }
        if (is_null($cp6__cph_PhoneLinkingDropDownList) || (is_array($cp6__cph_PhoneLinkingDropDownList) && empty($cp6__cph_PhoneLinkingDropDownList))) {
            unset($this->cp6__cph_PhoneLinkingDropDownList);
        } else {
            $this->cp6__cph_PhoneLinkingDropDownList = $cp6__cph_PhoneLinkingDropDownList;
        }
        
        return $this;
    }
}
