<?php

/**
 * Generated by phpSPO model generator 2020-05-27T08:42:11+00:00 
 */
namespace Office365\Graph;


use Office365\Runtime\ResourcePath;
/**
 *  "The entry point for OneNote resources."
 */
class Onenote extends Entity
{
    /**
     * The pages in all OneNote notebooks that are owned by the user or group.  Read-only. Nullable.
     * @return OnenotePageCollection
     */
    public function getPages()
    {
        if (!$this->isPropertyAvailable("Pages")) {
            $this->setProperty("Pages", new OnenotePageCollection($this->getContext(), new ResourcePath("Pages", $this->getResourcePath())));
        }
        return $this->getProperty("Pages");
    }
}