<?php
/**
* Copyright (c) Microsoft Corporation.  All Rights Reserved.  Licensed under the MIT License.  See License in the project root for license information.
* 
* PrintMargin File
* PHP version 7
*
* @category  Library
* @package   Microsoft.Graph
* @copyright (c) Microsoft Corporation. All rights reserved.
* @license   https://opensource.org/licenses/MIT MIT License
* @link      https://graph.microsoft.com
*/
namespace Microsoft\Graph\Model;
/**
* PrintMargin class
*
* @category  Model
* @package   Microsoft.Graph
* @copyright (c) Microsoft Corporation. All rights reserved.
* @license   https://opensource.org/licenses/MIT MIT License
* @link      https://graph.microsoft.com
*/
class PrintMargin extends Entity
{
    /**
    * Gets the bottom
    * The margin in microns from the bottom edge.
    *
    * @return int|null The bottom
    */
    public function getBottom()
    {
        if (array_key_exists("bottom", $this->_propDict)) {
            return $this->_propDict["bottom"];
        } else {
            return null;
        }
    }

    /**
    * Sets the bottom
    * The margin in microns from the bottom edge.
    *
    * @param int $val The value of the bottom
    *
    * @return PrintMargin
    */
    public function setBottom($val)
    {
        $this->_propDict["bottom"] = $val;
        return $this;
    }
    /**
    * Gets the left
    * The margin in microns from the left edge.
    *
    * @return int|null The left
    */
    public function getLeft()
    {
        if (array_key_exists("left", $this->_propDict)) {
            return $this->_propDict["left"];
        } else {
            return null;
        }
    }

    /**
    * Sets the left
    * The margin in microns from the left edge.
    *
    * @param int $val The value of the left
    *
    * @return PrintMargin
    */
    public function setLeft($val)
    {
        $this->_propDict["left"] = $val;
        return $this;
    }
    /**
    * Gets the right
    * The margin in microns from the right edge.
    *
    * @return int|null The right
    */
    public function getRight()
    {
        if (array_key_exists("right", $this->_propDict)) {
            return $this->_propDict["right"];
        } else {
            return null;
        }
    }

    /**
    * Sets the right
    * The margin in microns from the right edge.
    *
    * @param int $val The value of the right
    *
    * @return PrintMargin
    */
    public function setRight($val)
    {
        $this->_propDict["right"] = $val;
        return $this;
    }
    /**
    * Gets the top
    * The margin in microns from the top edge.
    *
    * @return int|null The top
    */
    public function getTop()
    {
        if (array_key_exists("top", $this->_propDict)) {
            return $this->_propDict["top"];
        } else {
            return null;
        }
    }

    /**
    * Sets the top
    * The margin in microns from the top edge.
    *
    * @param int $val The value of the top
    *
    * @return PrintMargin
    */
    public function setTop($val)
    {
        $this->_propDict["top"] = $val;
        return $this;
    }
}
