1 | <?php |
||
17 | class Article extends BaseType |
||
18 | { |
||
19 | /** |
||
20 | * The actual body of the article. |
||
21 | * |
||
22 | * @param string|string[] $articleBody |
||
23 | * |
||
24 | * @return static |
||
25 | * |
||
26 | * @see http://schema.org/articleBody |
||
27 | */ |
||
28 | public function articleBody($articleBody) |
||
32 | |||
33 | /** |
||
34 | * Articles may belong to one or more 'sections' in a magazine or newspaper, |
||
35 | * such as Sports, Lifestyle, etc. |
||
36 | * |
||
37 | * @param string|string[] $articleSection |
||
38 | * |
||
39 | * @return static |
||
40 | * |
||
41 | * @see http://schema.org/articleSection |
||
42 | */ |
||
43 | public function articleSection($articleSection) |
||
47 | |||
48 | /** |
||
49 | * The page on which the work ends; for example "138" or "xvi". |
||
50 | * |
||
51 | * @param int|int[]|string|string[] $pageEnd |
||
52 | * |
||
53 | * @return static |
||
54 | * |
||
55 | * @see http://schema.org/pageEnd |
||
56 | */ |
||
57 | public function pageEnd($pageEnd) |
||
61 | |||
62 | /** |
||
63 | * The page on which the work starts; for example "135" or "xiii". |
||
64 | * |
||
65 | * @param int|int[]|string|string[] $pageStart |
||
66 | * |
||
67 | * @return static |
||
68 | * |
||
69 | * @see http://schema.org/pageStart |
||
70 | */ |
||
71 | public function pageStart($pageStart) |
||
75 | |||
76 | /** |
||
77 | * Any description of pages that is not separated into pageStart and |
||
78 | * pageEnd; for example, "1-6, 9, 55" or "10-12, 46-49". |
||
79 | * |
||
80 | * @param string|string[] $pagination |
||
81 | * |
||
82 | * @return static |
||
83 | * |
||
84 | * @see http://schema.org/pagination |
||
85 | */ |
||
86 | public function pagination($pagination) |
||
90 | |||
91 | /** |
||
92 | * Indicates sections of a Web page that are particularly 'speakable' in the |
||
93 | * sense of being highlighted as being especially appropriate for |
||
94 | * text-to-speech conversion. Other sections of a page may also be usefully |
||
95 | * spoken in particular circumstances; the 'speakable' property serves to |
||
96 | * indicate the parts most likely to be generally useful for speech. |
||
97 | * |
||
98 | * The *speakable* property can be repeated an arbitrary number of times, |
||
99 | * with three kinds of possible 'content-locator' values: |
||
100 | * |
||
101 | * 1.) *id-value* URL references - uses *id-value* of an element in the page |
||
102 | * being annotated. The simplest use of *speakable* has (potentially |
||
103 | * relative) URL values, referencing identified sections of the document |
||
104 | * concerned. |
||
105 | * |
||
106 | * 2.) CSS Selectors - addresses content in the annotated page, eg. via |
||
107 | * class attribute. Use the [[cssSelector]] property. |
||
108 | * |
||
109 | * 3.) XPaths - addresses content via XPaths (assuming an XML view of the |
||
110 | * content). Use the [[xpath]] property. |
||
111 | * |
||
112 | * |
||
113 | * For more sophisticated markup of speakable sections beyond simple ID |
||
114 | * references, either CSS selectors or XPath expressions to pick out |
||
115 | * document section(s) as speakable. For this |
||
116 | * we define a supporting type, [[SpeakableSpecification]] which is defined |
||
117 | * to be a possible value of the *speakable* property. |
||
118 | * |
||
119 | * @param SpeakableSpecification|SpeakableSpecification[]|string|string[] $speakable |
||
120 | * |
||
121 | * @return static |
||
122 | * |
||
123 | * @see http://schema.org/speakable |
||
124 | */ |
||
125 | public function speakable($speakable) |
||
129 | |||
130 | /** |
||
131 | * The number of words in the text of the Article. |
||
132 | * |
||
133 | * @param int|int[] $wordCount |
||
134 | * |
||
135 | * @return static |
||
136 | * |
||
137 | * @see http://schema.org/wordCount |
||
138 | */ |
||
139 | public function wordCount($wordCount) |
||
143 | |||
144 | } |
||
145 |