<?php

namespace patest\StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for Printing.AuxDataItem.ItemOwnersWithName StructType
 * @subpackage Structs
 */
class Printing_AuxDataItem_ItemOwnersWithName extends Printing_AuxiliaryDataItem_Base
{
    /**
     * The Owners
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var \patest\StructType\RecordSetOfPrinting_AuxDataItem_OwnerWithName
     */
    public $Owners;
    /**
     * Constructor method for Printing.AuxDataItem.ItemOwnersWithName
     * @uses Printing_AuxDataItem_ItemOwnersWithName::setOwners()
     * @param \patest\StructType\RecordSetOfPrinting_AuxDataItem_OwnerWithName $owners
     */
    public function __construct(\patest\StructType\RecordSetOfPrinting_AuxDataItem_OwnerWithName $owners = null)
    {
        $this
            ->setOwners($owners);
    }
    /**
     * Get Owners 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 \patest\StructType\RecordSetOfPrinting_AuxDataItem_OwnerWithName|null
     */
    public function getOwners()
    {
        return isset($this->Owners) ? $this->Owners : null;
    }
    /**
     * Set Owners 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 \patest\StructType\RecordSetOfPrinting_AuxDataItem_OwnerWithName $owners
     * @return \patest\StructType\Printing_AuxDataItem_ItemOwnersWithName
     */
    public function setOwners(\patest\StructType\RecordSetOfPrinting_AuxDataItem_OwnerWithName $owners = null)
    {
        if (is_null($owners) || (is_array($owners) && empty($owners))) {
            unset($this->Owners);
        } else {
            $this->Owners = $owners;
        }
        return $this;
    }
}
