<?php

namespace StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for PositionItemResult_V6 StructType
 * @subpackage Structs
 */
class PositionItemResult_V6 extends PositionItemResult_V5
{
    /**
     * The Heading
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 1
     * - nillable: true
     * @var int
     */
    public $Heading;
    /**
     * Constructor method for PositionItemResult_V6
     * @uses PositionItemResult_V6::setHeading()
     * @param int $heading
     */
    public function __construct($heading = null)
    {
        $this
            ->setHeading($heading);
    }
    /**
     * Get Heading value
     * @return int
     */
    public function getHeading()
    {
        return $this->Heading;
    }
    /**
     * Set Heading value
     * @param int $heading
     * @return \StructType\PositionItemResult_V6
     */
    public function setHeading($heading = null)
    {
        // validation for constraint: int
        if (!is_null($heading) && !(is_int($heading) || ctype_digit($heading))) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide an integer value, %s given', var_export($heading, true), gettype($heading)), __LINE__);
        }
        $this->Heading = $heading;
        return $this;
    }
}
