<?php

namespace NineDotMedia\viapost-php\Struct;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for GetDocumentStickerAreaResponse Struct
 * @subpackage Structs
 */
class GetDocumentStickerAreaResponse extends AbstractStructBase
{
    /**
     * The GetDocumentStickerAreaResult
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 1
     * @var bool
     */
    public $GetDocumentStickerAreaResult;
    /**
     * The area
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 1
     * @var \NineDotMedia\viapost-php\Struct\RectangleF
     */
    public $area;
    /**
     * The returnMessage
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var string
     */
    public $returnMessage;
    /**
     * Constructor method for GetDocumentStickerAreaResponse
     * @uses GetDocumentStickerAreaResponse::setGetDocumentStickerAreaResult()
     * @uses GetDocumentStickerAreaResponse::setArea()
     * @uses GetDocumentStickerAreaResponse::setReturnMessage()
     * @param bool $getDocumentStickerAreaResult
     * @param \NineDotMedia\viapost-php\Struct\RectangleF $area
     * @param string $returnMessage
     */
    public function __construct($getDocumentStickerAreaResult = null, \NineDotMedia\viapost-php\Struct\RectangleF $area = null, $returnMessage = null)
    {
        $this
            ->setGetDocumentStickerAreaResult($getDocumentStickerAreaResult)
            ->setArea($area)
            ->setReturnMessage($returnMessage);
    }
    /**
     * Get GetDocumentStickerAreaResult value
     * @return bool
     */
    public function getGetDocumentStickerAreaResult()
    {
        return $this->GetDocumentStickerAreaResult;
    }
    /**
     * Set GetDocumentStickerAreaResult value
     * @param bool $getDocumentStickerAreaResult
     * @return \NineDotMedia\viapost-php\Struct\GetDocumentStickerAreaResponse
     */
    public function setGetDocumentStickerAreaResult($getDocumentStickerAreaResult = null)
    {
        // validation for constraint: boolean
        if (!is_null($getDocumentStickerAreaResult) && !is_bool($getDocumentStickerAreaResult)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a bool, %s given', var_export($getDocumentStickerAreaResult, true), gettype($getDocumentStickerAreaResult)), __LINE__);
        }
        $this->GetDocumentStickerAreaResult = $getDocumentStickerAreaResult;
        return $this;
    }
    /**
     * Get area value
     * @return \NineDotMedia\viapost-php\Struct\RectangleF
     */
    public function getArea()
    {
        return $this->area;
    }
    /**
     * Set area value
     * @param \NineDotMedia\viapost-php\Struct\RectangleF $area
     * @return \NineDotMedia\viapost-php\Struct\GetDocumentStickerAreaResponse
     */
    public function setArea(\NineDotMedia\viapost-php\Struct\RectangleF $area = null)
    {
        $this->area = $area;
        return $this;
    }
    /**
     * Get returnMessage value
     * @return string|null
     */
    public function getReturnMessage()
    {
        return $this->returnMessage;
    }
    /**
     * Set returnMessage value
     * @param string $returnMessage
     * @return \NineDotMedia\viapost-php\Struct\GetDocumentStickerAreaResponse
     */
    public function setReturnMessage($returnMessage = null)
    {
        // validation for constraint: string
        if (!is_null($returnMessage) && !is_string($returnMessage)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($returnMessage, true), gettype($returnMessage)), __LINE__);
        }
        $this->returnMessage = $returnMessage;
        return $this;
    }
}
