Skip to content

Commit

Permalink
docblocks
Browse files Browse the repository at this point in the history
  • Loading branch information
aaemnnosttv committed Jan 1, 2019
1 parent d8c09aa commit 101806b
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 2 deletions.
4 changes: 4 additions & 0 deletions src/Post/Model.php
Expand Up @@ -38,6 +38,10 @@
* @property string $post_title
* @property string $post_type
* @property string $to_ping
*
* @method static QueryBuilder query()
* @method static QueryBuilder whereSlug(string $slug)
* @method static QueryBuilder whereStatus(string $slug)
*/
abstract class Model extends BaseModel
{
Expand Down
5 changes: 3 additions & 2 deletions src/PostType/PostType.php
Expand Up @@ -8,13 +8,14 @@
use Silk\Support\Collection;
use Silk\Exception\WP_ErrorException;
use Silk\PostType\Exception\NonExistentPostTypeException;
use WP_Post_Type;

class PostType extends Type implements Registerable
{
/**
* PostType Constructor
*
* @param stdClass $object The WordPress post type object
* @param stdClass|WP_Post_Type $object The WordPress post type object
*
* @throws \InvalidArgumentException
*/
Expand Down Expand Up @@ -68,7 +69,7 @@ public static function load($id)
*
* @param $id
*
* @return mixed
* @return Builder
*/
public static function build($id)
{
Expand Down
1 change: 1 addition & 0 deletions src/Taxonomy/Builder.php
Expand Up @@ -60,6 +60,7 @@ public function forTypes($types)
* Register and return the new taxonomy.
*
* @throws InvalidTaxonomyNameException
* @throws Exception\NonExistentTaxonomyException
*
* @return Taxonomy
*/
Expand Down
2 changes: 2 additions & 0 deletions src/Term/Model.php
Expand Up @@ -22,6 +22,8 @@
* @property string $description
* @property int $parent
* @property int $count
*
* @method static QueryBuilder query()
*/
abstract class Model extends BaseModel
{
Expand Down
16 changes: 16 additions & 0 deletions src/User/Model.php
Expand Up @@ -8,6 +8,22 @@
use Silk\Exception\WP_ErrorException;
use Silk\User\Exception\UserNotFoundException;

/**
* @property-read WP_User user
* @property-read int ID
* @property string user_login
* @property string user_pass
* @property string user_nicename
* @property string user_email
* @property string user_registered
* @property string user_activation_key
* @property string user_status
* @property string display_name
* @property string spam
* @property string deleted
*
* @method static QueryBuilder query()
*/
class Model extends BaseModel
{
/**
Expand Down

0 comments on commit 101806b

Please sign in to comment.