1 | <?php |
||
20 | class PersonalUrls { |
||
21 | |||
22 | protected $personalUrls; |
||
23 | protected $title; |
||
24 | protected $user; |
||
25 | |||
26 | /** |
||
27 | * @since 1.0 |
||
28 | * |
||
29 | * @param array &$personalUrls |
||
30 | * @param Title &$title |
||
31 | * @param User $user |
||
32 | */ |
||
33 | 4 | public function __construct( array &$personalUrls, Title $title, User $user ) { |
|
38 | |||
39 | /** |
||
40 | * @since 1.0 |
||
41 | * |
||
42 | * @param array $configuration |
||
43 | */ |
||
44 | 3 | public function setConfiguration( array $configuration ) { |
|
47 | |||
48 | /** |
||
49 | * @since 1.0 |
||
50 | * |
||
51 | * @return boolean |
||
52 | */ |
||
53 | 3 | public function execute() { |
|
56 | |||
57 | 3 | protected function isEnabledForTopLink() { |
|
60 | |||
61 | 2 | protected function isEnabledForUser() { |
|
64 | |||
65 | 1 | protected function addSwlTopLinkUrl() { |
|
86 | |||
87 | 1 | protected function getWatchListLocation( $keys ) { |
|
90 | |||
91 | 1 | protected function getWatchListItem( $keys ) { |
|
94 | |||
95 | } |
||
96 |
In PHP it is possible to write to properties without declaring them. For example, the following is perfectly valid PHP code:
Generally, it is a good practice to explictly declare properties to avoid accidental typos and provide IDE auto-completion: