Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 4 additions & 10 deletions src/Events/DynamicallyRegisteringFeatureClass.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,14 @@

class DynamicallyRegisteringFeatureClass
{
/**
* The feature class.
*
* @var class-string
*/
public $feature;

/**
* Create a new event instance.
*
* @param class-string $feature
* @param class-string $feature The feature class.
*/
public function __construct($feature)
{
$this->feature = $feature;
public function __construct(
public $feature,
) {
}
}
26 changes: 6 additions & 20 deletions src/Events/FeatureDeleted.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,29 +8,15 @@ class FeatureDeleted
{
use SerializesModels;

/**
* The feature name.
*
* @var string
*/
public $feature;

/**
* The scope of the feature deletion.
*
* @var mixed
*/
public $scope;

/**
* Create a new event instance.
*
* @param string $feature
* @param mixed $scope
* @param string $feature The feature name.
* @param mixed $scope The scope of the feature deletion.
*/
public function __construct($feature, $scope)
{
$this->feature = $feature;
$this->scope = $scope;
public function __construct(
public $feature,
public $scope,
) {
}
}
37 changes: 8 additions & 29 deletions src/Events/FeatureResolved.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,38 +8,17 @@ class FeatureResolved
{
use SerializesModels;

/**
* The feature name.
*
* @var string
*/
public $feature;

/**
* The scope of the feature check.
*
* @var mixed
*/
public $scope;

/**
* The result value of the feature check.
*
* @var mixed
*/
public $value;

/**
* Create a new event instance.
*
* @param string $feature
* @param mixed $scope
* @param mixed $value
* @param string $feature The feature name.
* @param mixed $scope The scope of the feature check.
* @param mixed $value The result value of the feature check.
*/
public function __construct($feature, $scope, $value)
{
$this->feature = $feature;
$this->scope = $scope;
$this->value = $value;
public function __construct(
public $feature,
public $scope,
public $value,
) {
}
}
37 changes: 8 additions & 29 deletions src/Events/FeatureRetrieved.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,38 +8,17 @@ class FeatureRetrieved
{
use SerializesModels;

/**
* The feature name.
*
* @var string
*/
public $feature;

/**
* The scope of the feature check.
*
* @var mixed
*/
public $scope;

/**
* The result value of the feature check.
*
* @var mixed
*/
public $value;

/**
* Create a new event instance.
*
* @param string $feature
* @param mixed $scope
* @param mixed $value
* @param string $feature The feature name.
* @param mixed $scope The scope of the feature check.
* @param mixed $value The result value of the feature check.
*/
public function __construct($feature, $scope, $value)
{
$this->feature = $feature;
$this->scope = $scope;
$this->value = $value;
public function __construct(
public $feature,
public $scope,
public $value,
) {
}
}
37 changes: 8 additions & 29 deletions src/Events/FeatureUpdated.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,38 +8,17 @@ class FeatureUpdated
{
use SerializesModels;

/**
* The feature name.
*
* @var string
*/
public $feature;

/**
* The scope of the feature update.
*
* @var mixed
*/
public $scope;

/**
* The new feature value.
*
* @var mixed
*/
public $value;

/**
* Create a new event instance.
*
* @param string $feature
* @param mixed $scope
* @param mixed $value
* @param string $feature The feature name.
* @param mixed $scope The scope of the feature update.
* @param mixed $value The new feature value.
*/
public function __construct($feature, $scope, $value)
{
$this->feature = $feature;
$this->scope = $scope;
$this->value = $value;
public function __construct(
public $feature,
public $scope,
public $value,
) {
}
}
26 changes: 6 additions & 20 deletions src/Events/FeatureUpdatedForAllScopes.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,29 +8,15 @@ class FeatureUpdatedForAllScopes
{
use SerializesModels;

/**
* The feature name.
*
* @var string
*/
public $feature;

/**
* The new feature value.
*
* @var mixed
*/
public $value;

/**
* Create a new event instance.
*
* @param string $feature
* @param mixed $value
* @param string $feature The feature name.
* @param mixed $value The new feature value.
*/
public function __construct($feature, $value)
{
$this->feature = $feature;
$this->value = $value;
public function __construct(
public $feature,
public $value,
) {
}
}
15 changes: 4 additions & 11 deletions src/Events/FeaturesPurged.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,13 @@

class FeaturesPurged
{
/**
* The feature names.
*
* @var array
*/
public $features;

/**
* Create a new event instance.
*
* @param array $features
* @param array $features The feature names.
*/
public function __construct($features)
{
$this->features = $features;
public function __construct(
public $features,
) {
}
}
15 changes: 4 additions & 11 deletions src/Events/UnexpectedNullScopeEncountered.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,13 @@

class UnexpectedNullScopeEncountered
{
/**
* The feature name.
*
* @var string
*/
public $feature;

/**
* Create a new event instance.
*
* @param string $feature
* @param string $feature The feature name.
*/
public function __construct($feature)
{
$this->feature = $feature;
public function __construct(
public $feature,
) {
}
}
26 changes: 6 additions & 20 deletions src/Events/UnknownFeatureResolved.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,29 +8,15 @@ class UnknownFeatureResolved
{
use SerializesModels;

/**
* The feature name.
*
* @var string
*/
public $feature;

/**
* The scope of the feature check.
*
* @var mixed
*/
public $scope;

/**
* Create a new event instance.
*
* @param string $feature
* @param mixed $scope
* @param string $feature The feature name.
* @param mixed $scope The scope of the feature check.
*/
public function __construct($feature, $scope)
{
$this->feature = $feature;
$this->scope = $scope;
public function __construct(
public $feature,
public $scope,
) {
}
}