<?php

/**
 * Generated by phpSPO model generator 2020-05-25T06:42:59+00:00 
 */
namespace Office365\Graph;

use Office365\Runtime\ClientObject;
use Office365\Runtime\ResourcePath;
/**
 * Workbook is the top level object which contains related workbook objects such as worksheets, tables, ranges, etc.
 */
class Workbook extends ClientObject
{
    /**
     * @return WorkbookApplication
     */
    public function getApplication()
    {
        if (!$this->isPropertyAvailable("Application")) {
            $this->setProperty("Application", new WorkbookApplication($this->getContext(), new ResourcePath("Application", $this->getResourcePath())));
        }
        return $this->getProperty("Application");
    }
    /**
     * @return WorkbookFunctions
     */
    public function getFunctions()
    {
        if (!$this->isPropertyAvailable("Functions")) {
            $this->setProperty("Functions", new WorkbookFunctions($this->getContext(), new ResourcePath("Functions", $this->getResourcePath())));
        }
        return $this->getProperty("Functions");
    }
}