aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/mikespub/php-epub-meta/src/Contents/Nav.php
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/mikespub/php-epub-meta/src/Contents/Nav.php')
-rw-r--r--vendor/mikespub/php-epub-meta/src/Contents/Nav.php63
1 files changed, 63 insertions, 0 deletions
diff --git a/vendor/mikespub/php-epub-meta/src/Contents/Nav.php b/vendor/mikespub/php-epub-meta/src/Contents/Nav.php
new file mode 100644
index 000000000..e8eb980a6
--- /dev/null
+++ b/vendor/mikespub/php-epub-meta/src/Contents/Nav.php
@@ -0,0 +1,63 @@
+<?php
+
+namespace SebLucas\EPubMeta\Contents;
+
+/**
+ * EPUB NAV structure for EPUB 3
+ *
+ * @author Simon Schrape <simon@epubli.com>
+ */
+class Nav
+{
+ /** @var string from main document */
+ protected $docTitle;
+ /** @var string from main document */
+ protected $docAuthor;
+ /** @var NavPointList */
+ protected $navMap;
+
+ /**
+ * Summary of __construct
+ * @param string $title
+ * @param string $author
+ */
+ public function __construct($title, $author)
+ {
+ $this->docTitle = $title;
+ $this->docAuthor = $author;
+ $this->navMap = new NavPointList();
+ }
+
+ /**
+ * @return string
+ */
+ public function getDocTitle()
+ {
+ return $this->docTitle;
+ }
+
+ /**
+ * @return string
+ */
+ public function getDocAuthor()
+ {
+ return $this->docAuthor;
+ }
+
+ /**
+ * @return NavPointList
+ */
+ public function getNavMap()
+ {
+ return $this->navMap;
+ }
+
+ /**
+ * @param string $file
+ * @return array|NavPoint[]
+ */
+ public function findNavPointsForFile($file)
+ {
+ return $this->getNavMap()->findNavPointsForFile($file);
+ }
+}