Skip to content

Commit

Permalink
chore: adds inline comments
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonTheAdams committed Nov 19, 2024
1 parent e5976f2 commit c8af4d5
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/ValueObjects/Script.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@

namespace StellarWP\AdminNotices\ValueObjects;

/**
* Represents a script that can be enqueued with WordPress
*
* @unreleased
*/
class Script
{
/**
Expand All @@ -27,6 +32,9 @@ class Script
*/
private $args;

/**
* @unreleased
*/
public function __construct(
string $source,
array $dependencies = [],
Expand All @@ -39,6 +47,9 @@ public function __construct(
$this->args = $args;
}

/**
* @unreleased
*/
public function enqueue(string $handle): void
{
wp_enqueue_script(
Expand Down
13 changes: 13 additions & 0 deletions src/ValueObjects/Style.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@

namespace StellarWP\AdminNotices\ValueObjects;

/**
* Represents a stylesheet to be enqueued in WordPress
*
* @unreleased
*/
class Style
{
/**
Expand All @@ -27,6 +32,9 @@ class Style
*/
private $media;

/**
* @unreleased
*/
public function __construct(
string $source,
array $dependencies = [],
Expand All @@ -39,6 +47,11 @@ public function __construct(
$this->media = $media;
}

/**
* Enqueues the stylesheet with WordPress
*
* @unreleased
*/
public function enqueue(string $handle): void
{
wp_enqueue_style(
Expand Down

0 comments on commit c8af4d5

Please sign in to comment.