@@ -18,7 +18,7 @@ discard block |
||
| 18 | 18 | * Get metadata about a single page from the API. |
| 19 | 19 | * @param Project $project The project to which the page belongs. |
| 20 | 20 | * @param string $pageTitle Page title. |
| 21 | - * @return string[] Array with some of the following keys: pageid, title, missing, displaytitle, |
|
| 21 | + * @return string|null Array with some of the following keys: pageid, title, missing, displaytitle, |
|
| 22 | 22 | * url. |
| 23 | 23 | */ |
| 24 | 24 | public function getPageInfo(Project $project, $pageTitle) |
@@ -96,7 +96,7 @@ discard block |
||
| 96 | 96 | * Get the statement for a single revision, so that you can iterate row by row. |
| 97 | 97 | * @param Page $page The page. |
| 98 | 98 | * @param User|null $user Specify to get only revisions by the given user. |
| 99 | - * @return Doctrine\DBAL\Driver\PDOStatement |
|
| 99 | + * @return \Doctrine\DBAL\Driver\Statement |
|
| 100 | 100 | */ |
| 101 | 101 | public function getRevisionsStmt(Page $page, User $user = null) |
| 102 | 102 | { |
@@ -59,7 +59,7 @@ discard block |
||
| 59 | 59 | |
| 60 | 60 | /** |
| 61 | 61 | * Get this page's database ID. |
| 62 | - * @return int |
|
| 62 | + * @return \string|null |
|
| 63 | 63 | */ |
| 64 | 64 | public function getId() |
| 65 | 65 | { |
@@ -69,7 +69,7 @@ discard block |
||
| 69 | 69 | |
| 70 | 70 | /** |
| 71 | 71 | * Get this page's length in bytes. |
| 72 | - * @return int |
|
| 72 | + * @return \string|null |
|
| 73 | 73 | */ |
| 74 | 74 | public function getLength() |
| 75 | 75 | { |
@@ -93,7 +93,7 @@ discard block |
||
| 93 | 93 | |
| 94 | 94 | /** |
| 95 | 95 | * Get the full URL of this page. |
| 96 | - * @return string |
|
| 96 | + * @return \string|null |
|
| 97 | 97 | */ |
| 98 | 98 | public function getUrl() |
| 99 | 99 | { |
@@ -103,7 +103,7 @@ discard block |
||
| 103 | 103 | |
| 104 | 104 | /** |
| 105 | 105 | * Get the numerical ID of the namespace of this page. |
| 106 | - * @return int |
|
| 106 | + * @return \string|null |
|
| 107 | 107 | */ |
| 108 | 108 | public function getNamespace() |
| 109 | 109 | { |
@@ -113,7 +113,7 @@ discard block |
||
| 113 | 113 | |
| 114 | 114 | /** |
| 115 | 115 | * Get the number of page watchers. |
| 116 | - * @return int |
|
| 116 | + * @return \string|null |
|
| 117 | 117 | */ |
| 118 | 118 | public function getWatchers() |
| 119 | 119 | { |
@@ -420,8 +420,8 @@ discard block |
||
| 420 | 420 | |
| 421 | 421 | /** |
| 422 | 422 | * Get page views for the given page and timeframe. |
| 423 | - * @param string|DateTime $start In the format YYYYMMDD |
|
| 424 | - * @param string|DateTime $end In the format YYYYMMDD |
|
| 423 | + * @param string $start In the format YYYYMMDD |
|
| 424 | + * @param string $end In the format YYYYMMDD |
|
| 425 | 425 | * @return string[] |
| 426 | 426 | */ |
| 427 | 427 | public function getPageviews($start, $end) |