1 | <?php |
||
26 | class QuoteProvider implements QuoteProviderInterface { |
||
27 | |||
28 | /** |
||
29 | * Filename. |
||
30 | * |
||
31 | * @var string |
||
32 | */ |
||
33 | private $filename; |
||
34 | |||
35 | /** |
||
36 | * Quotes. |
||
37 | * |
||
38 | * @var QuoteInterface[] |
||
39 | */ |
||
40 | private $quotes; |
||
41 | |||
42 | /** |
||
43 | * Constructor. |
||
44 | * |
||
45 | * @param string $filename The filename. |
||
46 | * @throws FileNotFoundException Throws a file not found exception. |
||
47 | */ |
||
48 | public function __construct($filename) { |
||
52 | |||
53 | /** |
||
54 | *{@inheritdoc} |
||
55 | */ |
||
56 | public function getAuthors() { |
||
71 | |||
72 | /** |
||
73 | * Get the filename. |
||
74 | * |
||
75 | * @return string Returns the filename. |
||
76 | */ |
||
77 | public function getFilename() { |
||
80 | |||
81 | /** |
||
82 | * Get the quotes. |
||
83 | * |
||
84 | * @return QuoteInterface[] Returns the quotes. |
||
85 | */ |
||
86 | public function getQuotes() { |
||
89 | |||
90 | /** |
||
91 | * Parses. |
||
92 | * |
||
93 | * @return void |
||
94 | */ |
||
95 | public function parse() { |
||
113 | |||
114 | /** |
||
115 | * Set the filename. |
||
116 | * |
||
117 | * @param string $filename The filename. |
||
118 | * @return QuoteProvider Returns this quote provider. |
||
119 | * @throws FileNotFoundException Throws a file not found exception. |
||
120 | */ |
||
121 | protected function setFilename($filename) { |
||
128 | |||
129 | /** |
||
130 | * Set the quotes. |
||
131 | * |
||
132 | * @param QuoteInterface[] $quotes The quotes. |
||
133 | * @return QuoteProvider Returns this quote provider. |
||
134 | */ |
||
135 | protected function setQuotes(array $quotes) { |
||
139 | } |
||
140 |