Skip to content

Commit

Permalink
Merge pull request #6 from skaut/WP_Theme
Browse files Browse the repository at this point in the history
WP_Theme
  • Loading branch information
marekdedic authored Dec 2, 2019
2 parents d6de5ef + 0c766bb commit f8966c6
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 0 deletions.
44 changes: 44 additions & 0 deletions stubs/WordPress/class-wp-theme.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
<?php
/**
* @package phan-wordpress-stubs
*/

/**
*/
class WP_Theme implements ArrayAccess {
/**
* @var string
*/
public $version;

/**
* @param mixed $offset
*
* @return bool
*/
public function offsetExists( $offset ) {
}

/**
* @param mixed $offset
*
* @return mixed
*/
public function offsetGet( $offset ) {
}

/**
* @param mixed $offset
* @param mixed $value
*
* @return void
*/
public function offsetSet( $offset, $value ) {
}

/**
* @param mixed $offset
*/
public function offsetUnset( $offset ) {
}
}
9 changes: 9 additions & 0 deletions stubs/WordPress/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -631,6 +631,15 @@ function wp_enqueue_script( $handle, $src = '', $deps = [], $ver = false, $in_fo
function wp_enqueue_style( $handle, $src = '', $deps = [], $ver = false, $media = '' ) {
}

/**
* @param string $stylesheet
* @param string $theme_root
*
* @return WP_Theme
*/
function wp_get_theme( $stylesheet = '', $theme_root = '' ) {
}

/**
* @param mixed $data
* @param int $options
Expand Down

0 comments on commit f8966c6

Please sign in to comment.