<?php

namespace StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for Insert_Driver_V2 StructType
 * @subpackage Structs
 */
class Insert_Driver_V2 extends AbstractStructBase
{
    /**
     * The Login
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var \StructType\Login
     */
    public $Login;
    /**
     * The PersonInsert
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var \StructType\PersonInsert_V2
     */
    public $PersonInsert;
    /**
     * Constructor method for Insert_Driver_V2
     * @uses Insert_Driver_V2::setLogin()
     * @uses Insert_Driver_V2::setPersonInsert()
     * @param \StructType\Login $login
     * @param \StructType\PersonInsert_V2 $personInsert
     */
    public function __construct(\StructType\Login $login = null, \StructType\PersonInsert_V2 $personInsert = null)
    {
        $this
            ->setLogin($login)
            ->setPersonInsert($personInsert);
    }
    /**
     * Get Login value
     * @return \StructType\Login|null
     */
    public function getLogin()
    {
        return $this->Login;
    }
    /**
     * Set Login value
     * @param \StructType\Login $login
     * @return \StructType\Insert_Driver_V2
     */
    public function setLogin(\StructType\Login $login = null)
    {
        $this->Login = $login;
        return $this;
    }
    /**
     * Get PersonInsert value
     * @return \StructType\PersonInsert_V2|null
     */
    public function getPersonInsert()
    {
        return $this->PersonInsert;
    }
    /**
     * Set PersonInsert value
     * @param \StructType\PersonInsert_V2 $personInsert
     * @return \StructType\Insert_Driver_V2
     */
    public function setPersonInsert(\StructType\PersonInsert_V2 $personInsert = null)
    {
        $this->PersonInsert = $personInsert;
        return $this;
    }
}
