-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from skaut/WP_Widget
Added stubs for WP_Widget
- Loading branch information
Showing
2 changed files
with
48 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<?php | ||
/** | ||
* @package phan-wordpress-stubs | ||
*/ | ||
|
||
/** | ||
*/ | ||
class WP_Widget { | ||
/** | ||
* @param string $id_base | ||
* @param string $name | ||
* @param array $widget_options { | ||
* @type string $classname | ||
* @type string $description | ||
* } | ||
* @param array $control_options { | ||
* @type int $height | ||
* @type int $width | ||
* @type int|string $id_base | ||
* } | ||
*/ | ||
public function __construct( $id_base, $name, $widget_options = array(), $control_options = array() ) { | ||
} | ||
|
||
/** | ||
* @param array $args { | ||
* @type string after_title | ||
* @type string after_widget | ||
* @type string before_title | ||
* @type string before_widget | ||
* @type string class | ||
* @type string description | ||
* @type string id | ||
* @type string name | ||
* @type string widget_id | ||
* @type string widget_name | ||
* } | ||
* @param array $instance | ||
*/ | ||
public function widget( $args, $instance ) { | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters