blob: 7992c4a8e4e46487c4d105557ba5a1adea8e871a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
<?php
namespace SebLucas\EPubMeta\Contents;
/**
* EPUB TOC structure for EPUB 2
*
* @author Simon Schrape <simon@epubli.com>
*/
class Toc
{
/** @var string */
protected $docTitle;
/** @var string */
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);
}
}
|