<?php
/**
 * PersonDuplicateMatchType
 *
 * PHP version 5
 *
 * @category Class
 * @package  Fifa\ConnectId\Sdk\Api
 * @author   Swaagger Codegen team
 * @link     https://github.com/swagger-api/swagger-codegen
 */

/**
 * FIFA Connect ID - ID Directory V6
 *
 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
 *
 * OpenAPI spec version: v6
 * 
 * Generated by: https://github.com/swagger-api/swagger-codegen.git
 *
 */

/**
 * NOTE: This class is auto generated by the swagger code generator program.
 * https://github.com/swagger-api/swagger-codegen
 * Do not edit the class manually.
 */

namespace Fifa\ConnectId\Sdk\Api\Model;

use \ArrayAccess;

/**
 * PersonDuplicateMatchType Class Doc Comment
 *
 * @category    Class
 * @package     Fifa\ConnectId\Sdk\Api
 * @author      Swagger Codegen team
 * @link        https://github.com/swagger-api/swagger-codegen
 */
class PersonDuplicateMatchType implements ArrayAccess
{
    const DISCRIMINATOR = null;

    /**
      * The original name of the model.
      * @var string
      */
    protected static $swaggerModelName = 'PersonDuplicateMatchType';

    /**
      * Array of property to type mappings. Used for (de)serialization
      * @var string[]
      */
    protected static $swaggerTypes = [
        'queried_hash' => 'string',
        'queried_date_of_birth' => 'string',
        'matched_hash' => 'string',
        'matched_date_of_birth' => 'string'
    ];

    public static function swaggerTypes()
    {
        return self::$swaggerTypes;
    }

    /**
     * Array of attributes where the key is the local name, and the value is the original name
     * @var string[]
     */
    protected static $attributeMap = [
        'queried_hash' => 'queriedHash',
        'queried_date_of_birth' => 'queriedDateOfBirth',
        'matched_hash' => 'matchedHash',
        'matched_date_of_birth' => 'matchedDateOfBirth'
    ];

    /**
     * Array of attributes to setter functions (for deserialization of responses)
     * @var string[]
     */
    protected static $setters = [
        'queried_hash' => 'setQueriedHash',
        'queried_date_of_birth' => 'setQueriedDateOfBirth',
        'matched_hash' => 'setMatchedHash',
        'matched_date_of_birth' => 'setMatchedDateOfBirth'
    ];

    /**
     * Array of attributes to getter functions (for serialization of requests)
     * @var string[]
     */
    protected static $getters = [
        'queried_hash' => 'getQueriedHash',
        'queried_date_of_birth' => 'getQueriedDateOfBirth',
        'matched_hash' => 'getMatchedHash',
        'matched_date_of_birth' => 'getMatchedDateOfBirth'
    ];

    public static function attributeMap()
    {
        return self::$attributeMap;
    }

    public static function setters()
    {
        return self::$setters;
    }

    public static function getters()
    {
        return self::$getters;
    }

    /**
     * Associative array for storing property values
     * @var mixed[]
     */
    protected $container = [];

    /**
     * Constructor
     * @param mixed[] $data Associated array of property values initializing the model
     */
    public function __construct(array $data = null)
    {
        $this->container['queried_hash'] = isset($data['queried_hash']) ? $data['queried_hash'] : null;
        $this->container['queried_date_of_birth'] = isset($data['queried_date_of_birth']) ? $data['queried_date_of_birth'] : null;
        $this->container['matched_hash'] = isset($data['matched_hash']) ? $data['matched_hash'] : null;
        $this->container['matched_date_of_birth'] = isset($data['matched_date_of_birth']) ? $data['matched_date_of_birth'] : null;
    }

    /**
     * show all the invalid properties with reasons.
     *
     * @return array invalid properties with reasons
     */
    public function listInvalidProperties()
    {
        $invalid_properties = [];

        if ($this->container['queried_hash'] === null) {
            $invalid_properties[] = "'queried_hash' can't be null";
        }

        if ($this->container['queried_date_of_birth'] === null) {
            $invalid_properties[] = "'queried_date_of_birth' can't be null";
        }

        if ($this->container['matched_hash'] === null) {
            $invalid_properties[] = "'matched_hash' can't be null";
        }

        if ($this->container['matched_date_of_birth'] === null) {
            $invalid_properties[] = "'matched_date_of_birth' can't be null";
        }

        return $invalid_properties;
    }

    /**
     * validate all the properties in the model
     * return true if all passed
     *
     * @return bool True if all properties are valid
     */
    public function valid()
    {

        if ($this->container['queried_hash'] === null) {
            return false;
        }

        if ($this->container['queried_date_of_birth'] === null) {
            return false;
        }

        if ($this->container['matched_hash'] === null) {
            return false;
        }

        if ($this->container['matched_date_of_birth'] === null) {
            return false;
        }

        return true;
    }

    /**
     * Gets queried_hash
     * @return string
     */
    public function getQueriedHash()
    {
        return $this->container['queried_hash'];
    }

    /**
     * Sets queried_hash
     * @param string $queried_hash Queried name hash type
     * @return $this
     */
    public function setQueriedHash($queried_hash)
    {

        $this->container['queried_hash'] = $queried_hash;

        return $this;
    }

    /**
     * Gets queried_date_of_birth
     * @return string
     */
    public function getQueriedDateOfBirth()
    {
        return $this->container['queried_date_of_birth'];
    }

    /**
     * Sets queried_date_of_birth
     * @param string $queried_date_of_birth Queried date of birth type
     * @return $this
     */
    public function setQueriedDateOfBirth($queried_date_of_birth)
    {

        $this->container['queried_date_of_birth'] = $queried_date_of_birth;

        return $this;
    }

    /**
     * Gets matched_hash
     * @return string
     */
    public function getMatchedHash()
    {
        return $this->container['matched_hash'];
    }

    /**
     * Sets matched_hash
     * @param string $matched_hash Matched name hash type
     * @return $this
     */
    public function setMatchedHash($matched_hash)
    {

        $this->container['matched_hash'] = $matched_hash;

        return $this;
    }

    /**
     * Gets matched_date_of_birth
     * @return string
     */
    public function getMatchedDateOfBirth()
    {
        return $this->container['matched_date_of_birth'];
    }

    /**
     * Sets matched_date_of_birth
     * @param string $matched_date_of_birth Matched date of birth type
     * @return $this
     */
    public function setMatchedDateOfBirth($matched_date_of_birth)
    {

        $this->container['matched_date_of_birth'] = $matched_date_of_birth;

        return $this;
    }
    /**
     * Returns true if offset exists. False otherwise.
     * @param  integer $offset Offset
     * @return boolean
     */
    public function offsetExists($offset)
    {
        return isset($this->container[$offset]);
    }

    /**
     * Gets offset.
     * @param  integer $offset Offset
     * @return mixed
     */
    public function offsetGet($offset)
    {
        return isset($this->container[$offset]) ? $this->container[$offset] : null;
    }

    /**
     * Sets value based on offset.
     * @param  integer $offset Offset
     * @param  mixed   $value  Value to be set
     * @return void
     */
    public function offsetSet($offset, $value)
    {
        if (is_null($offset)) {
            $this->container[] = $value;
        } else {
            $this->container[$offset] = $value;
        }
    }

    /**
     * Unsets offset.
     * @param  integer $offset Offset
     * @return void
     */
    public function offsetUnset($offset)
    {
        unset($this->container[$offset]);
    }

    /**
     * Gets the string presentation of the object
     * @return string
     */
    public function __toString()
    {
        if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
            return json_encode(\Fifa\ConnectId\Sdk\Api\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT);
        }

        return json_encode(\Fifa\ConnectId\Sdk\Api\ObjectSerializer::sanitizeForSerialization($this));
    }
}


