repo
stringlengths
7
63
file_url
stringlengths
81
284
file_path
stringlengths
5
200
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 15:02:33
2026-01-05 05:24:06
truncated
bool
2 classes
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/src/Bag/Attributes/Validation/Size.php
src/Bag/Attributes/Validation/Size.php
<?php declare(strict_types=1); namespace Bag\Attributes\Validation; use Attribute; use Bag\Attributes\Attribute as AttributeInterface; #[Attribute(Attribute::TARGET_PROPERTY | Attribute::TARGET_PARAMETER)] class Size extends Rule implements AttributeInterface { public function __construct(int $size) { ...
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/src/Bag/Attributes/Validation/In.php
src/Bag/Attributes/Validation/In.php
<?php declare(strict_types=1); namespace Bag\Attributes\Validation; use Attribute; use Bag\Attributes\Attribute as AttributeInterface; #[Attribute(Attribute::TARGET_PROPERTY | Attribute::TARGET_PARAMETER)] class In extends Rule implements AttributeInterface { public function __construct(mixed ... $values) {...
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/src/Bag/Attributes/Validation/Required.php
src/Bag/Attributes/Validation/Required.php
<?php declare(strict_types=1); namespace Bag\Attributes\Validation; use Attribute; use Bag\Attributes\Attribute as AttributeInterface; #[Attribute(Attribute::TARGET_PROPERTY | Attribute::TARGET_PARAMETER)] class Required extends Rule implements AttributeInterface { public function __construct() { pa...
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/src/Bag/Attributes/Validation/Email.php
src/Bag/Attributes/Validation/Email.php
<?php declare(strict_types=1); namespace Bag\Attributes\Validation; use Attribute; use Bag\Attributes\Attribute as AttributeInterface; #[Attribute(Attribute::TARGET_PROPERTY | Attribute::TARGET_PARAMETER)] class Email extends Rule implements AttributeInterface { public function __construct( bool $rfc = ...
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/src/Bag/Attributes/Validation/Exists.php
src/Bag/Attributes/Validation/Exists.php
<?php declare(strict_types=1); namespace Bag\Attributes\Validation; use Attribute; use Bag\Attributes\Attribute as AttributeInterface; use Illuminate\Database\Eloquent\Model; #[Attribute(Attribute::TARGET_PROPERTY | Attribute::TARGET_PARAMETER)] class Exists extends Rule implements AttributeInterface { /** ...
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/src/Bag/Attributes/Validation/Min.php
src/Bag/Attributes/Validation/Min.php
<?php declare(strict_types=1); namespace Bag\Attributes\Validation; use Attribute; use Bag\Attributes\Attribute as AttributeInterface; #[Attribute(Attribute::TARGET_PROPERTY | Attribute::TARGET_PARAMETER)] class Min extends Rule implements AttributeInterface { public function __construct(int $minimum) { ...
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/src/Bag/Attributes/Validation/RequiredWith.php
src/Bag/Attributes/Validation/RequiredWith.php
<?php declare(strict_types=1); namespace Bag\Attributes\Validation; use Attribute; use Bag\Attributes\Attribute as AttributeInterface; #[Attribute(Attribute::TARGET_PROPERTY | Attribute::TARGET_PARAMETER)] class RequiredWith extends Rule implements AttributeInterface { public function __construct(string $otherF...
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/src/Bag/Attributes/Validation/Integer.php
src/Bag/Attributes/Validation/Integer.php
<?php declare(strict_types=1); namespace Bag\Attributes\Validation; use Attribute; use Bag\Attributes\Attribute as AttributeInterface; #[Attribute(Attribute::TARGET_PROPERTY | Attribute::TARGET_PARAMETER)] class Integer extends Rule implements AttributeInterface { public function __construct() { par...
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/src/Bag/Attributes/Validation/Str.php
src/Bag/Attributes/Validation/Str.php
<?php declare(strict_types=1); namespace Bag\Attributes\Validation; use Attribute; use Bag\Attributes\Attribute as AttributeInterface; #[Attribute(Attribute::TARGET_PROPERTY | Attribute::TARGET_PARAMETER)] class Str extends Rule implements AttributeInterface { public function __construct() { parent:...
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/src/Bag/Attributes/Validation/NotRegex.php
src/Bag/Attributes/Validation/NotRegex.php
<?php declare(strict_types=1); namespace Bag\Attributes\Validation; use Attribute; use Bag\Attributes\Attribute as AttributeInterface; #[Attribute(Attribute::TARGET_PROPERTY | Attribute::TARGET_PARAMETER)] class NotRegex extends Rule implements AttributeInterface { public function __construct(string $regex) ...
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/src/Bag/Attributes/Validation/Boolean.php
src/Bag/Attributes/Validation/Boolean.php
<?php declare(strict_types=1); namespace Bag\Attributes\Validation; use Attribute; use Bag\Attributes\Attribute as AttributeInterface; #[Attribute(Attribute::TARGET_PROPERTY | Attribute::TARGET_PARAMETER)] class Boolean extends Rule implements AttributeInterface { public function __construct() { par...
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/src/Bag/Attributes/Validation/Numeric.php
src/Bag/Attributes/Validation/Numeric.php
<?php declare(strict_types=1); namespace Bag\Attributes\Validation; use Attribute; use Bag\Attributes\Attribute as AttributeInterface; #[Attribute(Attribute::TARGET_PROPERTY | Attribute::TARGET_PARAMETER)] class Numeric extends Rule implements AttributeInterface { public function __construct() { par...
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/src/Bag/Attributes/Validation/Unique.php
src/Bag/Attributes/Validation/Unique.php
<?php declare(strict_types=1); namespace Bag\Attributes\Validation; use Attribute; use Bag\Attributes\Attribute as AttributeInterface; use Illuminate\Database\Eloquent\Model; #[Attribute(Attribute::TARGET_PROPERTY | Attribute::TARGET_PARAMETER)] class Unique extends Rule implements AttributeInterface { /** ...
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/src/Bag/Attributes/Validation/RequiredIf.php
src/Bag/Attributes/Validation/RequiredIf.php
<?php declare(strict_types=1); namespace Bag\Attributes\Validation; use Attribute; use Bag\Attributes\Attribute as AttributeInterface; #[Attribute(Attribute::TARGET_PROPERTY | Attribute::TARGET_PARAMETER)] class RequiredIf extends Rule implements AttributeInterface { public function __construct(string $otherFie...
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/src/Bag/Attributes/Validation/Max.php
src/Bag/Attributes/Validation/Max.php
<?php declare(strict_types=1); namespace Bag\Attributes\Validation; use Attribute; use Bag\Attributes\Attribute as AttributeInterface; #[Attribute(Attribute::TARGET_PROPERTY | Attribute::TARGET_PARAMETER)] class Max extends Rule implements AttributeInterface { public function __construct(int $maximum) { ...
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/src/Bag/Attributes/Validation/RequiredUnless.php
src/Bag/Attributes/Validation/RequiredUnless.php
<?php declare(strict_types=1); namespace Bag\Attributes\Validation; use Attribute; use Bag\Attributes\Attribute as AttributeInterface; #[Attribute(Attribute::TARGET_PROPERTY | Attribute::TARGET_PARAMETER)] class RequiredUnless extends Rule implements AttributeInterface { public function __construct(string $othe...
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/src/Bag/Attributes/Validation/Between.php
src/Bag/Attributes/Validation/Between.php
<?php declare(strict_types=1); namespace Bag\Attributes\Validation; use Attribute; use Bag\Attributes\Attribute as AttributeInterface; #[Attribute(Attribute::TARGET_PROPERTY | Attribute::TARGET_PARAMETER)] class Between extends Rule implements AttributeInterface { public function __construct(int $min, int $max)...
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/src/Bag/Attributes/Validation/Rule.php
src/Bag/Attributes/Validation/Rule.php
<?php declare(strict_types=1); namespace Bag\Attributes\Validation; use Attribute; use Bag\Attributes\Attribute as AttributeInterface; #[Attribute(Attribute::TARGET_PROPERTY | Attribute::TARGET_PARAMETER)] class Rule implements AttributeInterface { public string|object $rule; public function __construct( ...
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/src/Bag/Attributes/Laravel/FromRouteParameterProperty.php
src/Bag/Attributes/Laravel/FromRouteParameterProperty.php
<?php declare(strict_types=1); namespace Bag\Attributes\Laravel; use Attribute; use Bag\Attributes\Attribute as AttributeInterface; #[Attribute(Attribute::TARGET_PROPERTY | Attribute::TARGET_PARAMETER)] class FromRouteParameterProperty implements AttributeInterface { public function __construct( public ...
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/src/Bag/Attributes/Laravel/FromRouteParameter.php
src/Bag/Attributes/Laravel/FromRouteParameter.php
<?php declare(strict_types=1); namespace Bag\Attributes\Laravel; use Attribute; use Bag\Attributes\Attribute as AttributeInterface; #[Attribute(Attribute::TARGET_PROPERTY | Attribute::TARGET_PARAMETER)] class FromRouteParameter implements AttributeInterface { public function __construct( public ?string ...
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/src/Bag/Pipelines/InputPipeline.php
src/Bag/Pipelines/InputPipeline.php
<?php declare(strict_types=1); namespace Bag\Pipelines; use Bag\Bag; use Bag\Pipelines\Pipes\CastInputValues; use Bag\Pipelines\Pipes\ComputedValues; use Bag\Pipelines\Pipes\DebugCollection; use Bag\Pipelines\Pipes\ExtraParameters; use Bag\Pipelines\Pipes\FillBag; use Bag\Pipelines\Pipes\FillNulls; use Bag\Pipelines...
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/src/Bag/Pipelines/OutputCollectionPipeline.php
src/Bag/Pipelines/OutputCollectionPipeline.php
<?php declare(strict_types=1); namespace Bag\Pipelines; use Bag\Pipelines\Pipes\WrapCollection; use Bag\Pipelines\Values\CollectionOutput; use Illuminate\Support\Collection as LaravelCollection; use League\Pipeline\Pipeline; class OutputCollectionPipeline { /** * @return LaravelCollection<array-key,mixed> ...
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/src/Bag/Pipelines/WithoutValidationPipeline.php
src/Bag/Pipelines/WithoutValidationPipeline.php
<?php declare(strict_types=1); namespace Bag\Pipelines; use Bag\Bag; use Bag\Pipelines\Pipes\CastInputValues; use Bag\Pipelines\Pipes\ComputedValues; use Bag\Pipelines\Pipes\DebugCollection; use Bag\Pipelines\Pipes\FillBag; use Bag\Pipelines\Pipes\FillNulls; use Bag\Pipelines\Pipes\FillOptionals; use Bag\Pipelines\P...
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/src/Bag/Pipelines/ValidationPipeline.php
src/Bag/Pipelines/ValidationPipeline.php
<?php declare(strict_types=1); namespace Bag\Pipelines; use Bag\Bag; use Bag\Pipelines\Pipes\ExtraParameters; use Bag\Pipelines\Pipes\FillNulls; use Bag\Pipelines\Pipes\FillOptionals; use Bag\Pipelines\Pipes\IsVariadic; use Bag\Pipelines\Pipes\MapInput; use Bag\Pipelines\Pipes\MissingProperties; use Bag\Pipelines\Pi...
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/src/Bag/Pipelines/OutputPipeline.php
src/Bag/Pipelines/OutputPipeline.php
<?php declare(strict_types=1); namespace Bag\Pipelines; use Bag\Pipelines\Pipes\CastOutputValues; use Bag\Pipelines\Pipes\GetValues; use Bag\Pipelines\Pipes\HideJsonValues; use Bag\Pipelines\Pipes\HideOptionalValues; use Bag\Pipelines\Pipes\HideValues; use Bag\Pipelines\Pipes\MapOutput; use Bag\Pipelines\Pipes\Proce...
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/src/Bag/Pipelines/Values/CollectionOutput.php
src/Bag/Pipelines/Values/CollectionOutput.php
<?php declare(strict_types=1); namespace Bag\Pipelines\Values; use Bag\Enums\OutputType; use Illuminate\Support\Collection as LaravelCollection; class CollectionOutput { /** * @param LaravelCollection<string, mixed> $collection */ public function __construct( public LaravelCollection $coll...
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/src/Bag/Pipelines/Values/BagInput.php
src/Bag/Pipelines/Values/BagInput.php
<?php declare(strict_types=1); namespace Bag\Pipelines\Values; use Bag\Bag; use Bag\Property\Value; use Bag\Property\ValueCollection; use Illuminate\Support\Collection as LaravelCollection; /** * @internal * @template T of Bag */ class BagInput { /** * @var T */ public Bag $bag; /** *...
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/src/Bag/Pipelines/Values/BagOutput.php
src/Bag/Pipelines/Values/BagOutput.php
<?php declare(strict_types=1); namespace Bag\Pipelines\Values; use Bag\Bag; use Bag\Enums\OutputType; use Bag\Property\ValueCollection; use Illuminate\Support\Collection as LaravelCollection; /** * @internal */ class BagOutput { /** * @var class-string<Bag> */ public string $bagClassname; pu...
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/src/Bag/Pipelines/Pipes/DebugCollection.php
src/Bag/Pipelines/Pipes/DebugCollection.php
<?php declare(strict_types=1); namespace Bag\Pipelines\Pipes; use Bag\Bag; use Bag\DebugBar\Collectors\BagCollector; use Bag\Pipelines\Values\BagInput; readonly class DebugCollection { /** * @template T of Bag * @param BagInput<T> $input * @return BagInput<T> */ public function __invoke(...
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/src/Bag/Pipelines/Pipes/IsVariadic.php
src/Bag/Pipelines/Pipes/IsVariadic.php
<?php declare(strict_types=1); namespace Bag\Pipelines\Pipes; use Bag\Bag; use Bag\Pipelines\Values\BagInput; use Bag\Property\Value; readonly class IsVariadic { /** * @template T of Bag * @param BagInput<T> $input * @return BagInput<T> */ public function __invoke(BagInput $input): BagIn...
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/src/Bag/Pipelines/Pipes/ProcessArguments.php
src/Bag/Pipelines/Pipes/ProcessArguments.php
<?php declare(strict_types=1); namespace Bag\Pipelines\Pipes; use Bag\Bag; use Bag\Pipelines\Values\BagInput; use Bag\Property\Value; readonly class ProcessArguments { /** * @template T of Bag * @param BagInput<T> $input * @return BagInput<T> */ public function __invoke(BagInput $input):...
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/src/Bag/Pipelines/Pipes/StripExtraParameters.php
src/Bag/Pipelines/Pipes/StripExtraParameters.php
<?php declare(strict_types=1); namespace Bag\Pipelines\Pipes; use Bag\Bag; use Bag\Pipelines\Values\BagInput; readonly class StripExtraParameters { /** * @template T of Bag * @param BagInput<T> $input * @return BagInput<T> */ public function __invoke(BagInput $input): BagInput { ...
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/src/Bag/Pipelines/Pipes/GetValues.php
src/Bag/Pipelines/Pipes/GetValues.php
<?php declare(strict_types=1); namespace Bag\Pipelines\Pipes; use Bag\Pipelines\Values\BagOutput; final class GetValues { public function __invoke(BagOutput $output): BagOutput { $output->values = $output->bag->getRaw(); return $output; } }
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/src/Bag/Pipelines/Pipes/Wrap.php
src/Bag/Pipelines/Pipes/Wrap.php
<?php declare(strict_types=1); namespace Bag\Pipelines\Pipes; use Bag\Attributes\Wrap as WrapAttribute; use Bag\Attributes\WrapJson; use Bag\Collection; use Bag\Enums\OutputType; use Bag\Internal\Reflection; use Bag\Pipelines\Values\BagOutput; readonly class Wrap { public function __invoke(BagOutput $output): B...
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/src/Bag/Pipelines/Pipes/CastInputValues.php
src/Bag/Pipelines/Pipes/CastInputValues.php
<?php declare(strict_types=1); namespace Bag\Pipelines\Pipes; use Bag\Bag; use Bag\Pipelines\Values\BagInput; use Bag\Property\Value; use Bag\Property\ValueCollection; use Illuminate\Support\Collection; readonly class CastInputValues { /** * @template T of Bag * @param BagInput<T> $input * @retur...
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/src/Bag/Pipelines/Pipes/HideValues.php
src/Bag/Pipelines/Pipes/HideValues.php
<?php declare(strict_types=1); namespace Bag\Pipelines\Pipes; use Bag\Attributes\Hidden; use Bag\Internal\Cache; use Bag\Internal\Reflection; use Bag\Pipelines\Values\BagOutput; use Bag\Property\Value; use SensitiveParameter; readonly class HideValues { public function __invoke(BagOutput $output): BagOutput ...
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/src/Bag/Pipelines/Pipes/HideOptionalValues.php
src/Bag/Pipelines/Pipes/HideOptionalValues.php
<?php declare(strict_types=1); namespace Bag\Pipelines\Pipes; use Bag\Pipelines\Values\BagOutput; use Bag\Values\Optional; readonly class HideOptionalValues { public function __invoke(BagOutput $output): BagOutput { $output->values = $output->values->filter(function (mixed $value) { retu...
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/src/Bag/Pipelines/Pipes/FillNulls.php
src/Bag/Pipelines/Pipes/FillNulls.php
<?php declare(strict_types=1); namespace Bag\Pipelines\Pipes; use Bag\Bag; use Bag\Pipelines\Values\BagInput; use Bag\Property\Value; use ReflectionParameter; use ReflectionProperty; readonly class FillNulls { /** * @template T of Bag * @param BagInput<T> $input * @return BagInput<T> */ ...
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/src/Bag/Pipelines/Pipes/FillBag.php
src/Bag/Pipelines/Pipes/FillBag.php
<?php declare(strict_types=1); namespace Bag\Pipelines\Pipes; use Bag\Bag; use Bag\Pipelines\Values\BagInput; readonly class FillBag { /** * @template T of Bag * @param BagInput<T> $input * @return BagInput<T> */ public function __invoke(BagInput $input): BagInput { // @phpst...
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/src/Bag/Pipelines/Pipes/ComputedValues.php
src/Bag/Pipelines/Pipes/ComputedValues.php
<?php declare(strict_types=1); namespace Bag\Pipelines\Pipes; use Bag\Attributes\Computed; use Bag\Bag; use Bag\Exceptions\ComputedPropertyUninitializedException; use Bag\Internal\Cache; use Bag\Internal\Reflection; use Bag\Pipelines\Values\BagInput; use Illuminate\Support\Collection; use ReflectionProperty; readon...
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/src/Bag/Pipelines/Pipes/LaravelRouteParameters.php
src/Bag/Pipelines/Pipes/LaravelRouteParameters.php
<?php declare(strict_types=1); namespace Bag\Pipelines\Pipes; use Bag\Attributes\Laravel\FromRouteParameter; use Bag\Attributes\Laravel\FromRouteParameterProperty; use Bag\Bag; use Bag\Exceptions\InvalidRouteParameterException; use Bag\Internal\Reflection; use Bag\Pipelines\Values\BagInput; use ReflectionParameter; ...
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/src/Bag/Pipelines/Pipes/ProcessProperties.php
src/Bag/Pipelines/Pipes/ProcessProperties.php
<?php declare(strict_types=1); namespace Bag\Pipelines\Pipes; use Bag\Internal\Cache; use Bag\Internal\Reflection; use Bag\Pipelines\Values\BagOutput; use Bag\Property\Value; use Bag\Property\ValueCollection; use ReflectionParameter; use ReflectionProperty; readonly class ProcessProperties { public function __i...
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/src/Bag/Pipelines/Pipes/CastOutputValues.php
src/Bag/Pipelines/Pipes/CastOutputValues.php
<?php declare(strict_types=1); namespace Bag\Pipelines\Pipes; use Bag\Pipelines\Values\BagOutput; use Bag\Property\Value; use Bag\Property\ValueCollection; use Illuminate\Support\Collection; readonly class CastOutputValues { public function __invoke(BagOutput $output): BagOutput { $properties = $out...
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/src/Bag/Pipelines/Pipes/MissingProperties.php
src/Bag/Pipelines/Pipes/MissingProperties.php
<?php declare(strict_types=1); namespace Bag\Pipelines\Pipes; use Bag\Bag; use Bag\Exceptions\MissingPropertiesException; use Bag\Pipelines\Values\BagInput; readonly class MissingProperties { /** * @template T of Bag * @param BagInput<T> $input * @return BagInput<T> */ public function __...
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/src/Bag/Pipelines/Pipes/ExtraParameters.php
src/Bag/Pipelines/Pipes/ExtraParameters.php
<?php declare(strict_types=1); namespace Bag\Pipelines\Pipes; use Bag\Attributes\StripExtraParameters; use Bag\Bag; use Bag\Exceptions\AdditionalPropertiesException; use Bag\Internal\Reflection; use Bag\Pipelines\Values\BagInput; readonly class ExtraParameters { /** * @template T of Bag * @param BagIn...
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/src/Bag/Pipelines/Pipes/ProcessParameters.php
src/Bag/Pipelines/Pipes/ProcessParameters.php
<?php declare(strict_types=1); namespace Bag\Pipelines\Pipes; use Bag\Bag; use Bag\Exceptions\InvalidBag; use Bag\Internal\Cache; use Bag\Internal\Reflection; use Bag\Pipelines\Values\BagInput; use Bag\Pipelines\Values\BagOutput; use Bag\Property\Value; use Bag\Property\ValueCollection; use ReflectionParameter; rea...
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/src/Bag/Pipelines/Pipes/FillOptionals.php
src/Bag/Pipelines/Pipes/FillOptionals.php
<?php declare(strict_types=1); namespace Bag\Pipelines\Pipes; use Bag\Bag; use Bag\Pipelines\Values\BagInput; use Bag\Property\Value; use Bag\Values\Optional; use ReflectionParameter; use ReflectionProperty; readonly class FillOptionals { /** * @template T of Bag * @param BagInput<T> $input * @re...
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/src/Bag/Pipelines/Pipes/Transform.php
src/Bag/Pipelines/Pipes/Transform.php
<?php declare(strict_types=1); namespace Bag\Pipelines\Pipes; use ArrayAccess; use Bag\Attributes\Transforms; use Bag\Bag; use Bag\Collection; use Bag\Internal\Reflection; use Bag\Pipelines\Values\BagInput; use Illuminate\Contracts\Support\Arrayable; use Illuminate\Support\Collection as LaravelCollection; use Illumi...
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/src/Bag/Pipelines/Pipes/MapInput.php
src/Bag/Pipelines/Pipes/MapInput.php
<?php declare(strict_types=1); namespace Bag\Pipelines\Pipes; use Bag\Bag; use Bag\Pipelines\Values\BagInput; readonly class MapInput { /** * @template T of Bag * @param BagInput<T> $input * @return BagInput<T> */ public function __invoke(BagInput $input): BagInput { $aliases...
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/src/Bag/Pipelines/Pipes/Validate.php
src/Bag/Pipelines/Pipes/Validate.php
<?php declare(strict_types=1); namespace Bag\Pipelines\Pipes; use BackedEnum; use Bag\Bag; use Bag\Internal\Validator; use Bag\Pipelines\Values\BagInput; use Bag\Property\Value; use Bag\Validation\Rules\OptionalOr; use Bag\Values\Optional; use Illuminate\Contracts\Validation\ValidationRule; use Illuminate\Support\Co...
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/src/Bag/Pipelines/Pipes/WrapCollection.php
src/Bag/Pipelines/Pipes/WrapCollection.php
<?php declare(strict_types=1); namespace Bag\Pipelines\Pipes; use Bag\Attributes\Wrap; use Bag\Attributes\WrapJson; use Bag\Enums\OutputType; use Bag\Internal\Reflection; use Bag\Pipelines\Values\CollectionOutput; use Illuminate\Support\Collection as LaravelCollection; readonly class WrapCollection { public fun...
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/src/Bag/Pipelines/Pipes/HideJsonValues.php
src/Bag/Pipelines/Pipes/HideJsonValues.php
<?php declare(strict_types=1); namespace Bag\Pipelines\Pipes; use Bag\Attributes\HiddenFromJson; use Bag\Enums\OutputType; use Bag\Internal\Cache; use Bag\Internal\Reflection; use Bag\Pipelines\Values\BagOutput; use Bag\Property\Value; use Illuminate\Support\Collection; readonly class HideJsonValues { public fu...
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/src/Bag/Pipelines/Pipes/MapOutput.php
src/Bag/Pipelines/Pipes/MapOutput.php
<?php declare(strict_types=1); namespace Bag\Pipelines\Pipes; use Bag\Enums\OutputType; use Bag\Pipelines\Values\BagOutput; readonly class MapOutput { public function __invoke(BagOutput $output): BagOutput { if ($output->outputType === OutputType::RAW) { $output->output = $output->values...
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/src/Bag/Eloquent/Casts/AsBag.php
src/Bag/Eloquent/Casts/AsBag.php
<?php declare(strict_types=1); namespace Bag\Eloquent\Casts; use Bag\Bag; use Illuminate\Contracts\Database\Eloquent\CastsAttributes; use Illuminate\Database\Eloquent\Model; /** * @implements CastsAttributes<Bag, mixed> */ class AsBag implements CastsAttributes { /** * @param class-string<Bag> $bagClass ...
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/src/Bag/Eloquent/Casts/AsBagCollection.php
src/Bag/Eloquent/Casts/AsBagCollection.php
<?php declare(strict_types=1); namespace Bag\Eloquent\Casts; use Bag\Bag; use Bag\Collection; use Illuminate\Contracts\Database\Eloquent\CastsAttributes; use Illuminate\Contracts\Support\Arrayable; use Illuminate\Database\Eloquent\Model; use Illuminate\Support\Collection as LaravelCollection; /** * @implements Cas...
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/src/Bag/Property/Value.php
src/Bag/Property/Value.php
<?php declare(strict_types=1); namespace Bag\Property; use Bag\Bag; use Bag\Collection; use Bag\Internal\Util; use Bag\Values\Optional; use Illuminate\Support\Collection as LaravelCollection; use ReflectionClass; use ReflectionParameter; use ReflectionProperty; class Value { /** * @param ReflectionClass<Ba...
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/src/Bag/Property/ValidatorCollection.php
src/Bag/Property/ValidatorCollection.php
<?php declare(strict_types=1); namespace Bag\Property; use Bag\Attributes\Validation\Rule; use Bag\Internal\Reflection; use Illuminate\Support\Collection; use ReflectionAttribute; /** * @extends Collection<string, mixed> */ class ValidatorCollection extends Collection { public static function create(\Reflecti...
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/src/Bag/Property/MapCollection.php
src/Bag/Property/MapCollection.php
<?php declare(strict_types=1); namespace Bag\Property; use Bag\Attributes\Attribute; use Bag\Attributes\MapInputName; use Bag\Attributes\MapName; use Bag\Attributes\MapOutputName; use Bag\Bag; use Bag\Internal\Reflection; use Bag\Mappers\MapperInterface; use Illuminate\Support\Collection; use ReflectionAttribute; us...
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/src/Bag/Property/CastOutput.php
src/Bag/Property/CastOutput.php
<?php declare(strict_types=1); namespace Bag\Property; use Bag\Attributes\Cast; use Bag\Attributes\CastOutput as CastOutputAttribute; use Bag\Casts\CastsPropertyGet; use Bag\Internal\Reflection; use Bag\Internal\Util; use Illuminate\Support\Collection as LaravelCollection; class CastOutput { public function __c...
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/src/Bag/Property/Alias.php
src/Bag/Property/Alias.php
<?php declare(strict_types=1); namespace Bag\Property; class Alias { }
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/src/Bag/Property/ValueCollection.php
src/Bag/Property/ValueCollection.php
<?php declare(strict_types=1); namespace Bag\Property; use Illuminate\Support\Collection; /** * @extends Collection<string, Value> */ class ValueCollection extends Collection { public function required(): static { return $this->where('required', true); } public function nullable(): static...
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/src/Bag/Property/CastInput.php
src/Bag/Property/CastInput.php
<?php declare(strict_types=1); namespace Bag\Property; use Bag\Attributes\Cast; use Bag\Attributes\CastInput as CastInputAttribute; use Bag\Casts\CastsPropertySet; use Bag\Casts\MagicCast; use Bag\Collection; use Bag\Internal\Reflection; use Bag\Internal\Util; use Illuminate\Support\Collection as LaravelCollection; ...
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/tests/Pest.php
tests/Pest.php
<?php declare(strict_types=1); use Bag\Internal\Cache; use Illuminate\Foundation\Testing\LazilyRefreshDatabase; use PHPUnit\Framework\TestCase as PHPUnitTestCase; use Tests\TestCase; /* |-------------------------------------------------------------------------- | Test Case |------------------------------------------...
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/tests/TestCase.php
tests/TestCase.php
<?php declare(strict_types=1); namespace Tests; use Bag\BagServiceProvider; use Illuminate\Routing\Middleware\SubstituteBindings; use Orchestra\Testbench\TestCase as OrchestraTestCase; use function Orchestra\Testbench\workbench_path; use Tests\Fixtures\Controllers\TestController; abstract class TestCase extends Orc...
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/tests/ArchTest.php
tests/ArchTest.php
<?php declare(strict_types=1); beforeEach()->coversNothing(); arch('it does not call dd()')->expect('dd')->not->toBeUsed(); arch('it does not call ddd()')->expect('ddd')->not->toBeUsed(); arch('it does not call dump()')->expect('dump')->not->toBeUsed(); arch('it does not call xdebug_break()')->expect('xdebug_break')...
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/tests/Standalone/Pipelines/Pipes/ValidateTest.php
tests/Standalone/Pipelines/Pipes/ValidateTest.php
<?php declare(strict_types=1); use Bag\Pipelines\Pipes\IsVariadic; use Bag\Pipelines\Pipes\MapInput; use Bag\Pipelines\Pipes\ProcessParameters; use Bag\Pipelines\Pipes\Validate; use Bag\Pipelines\Values\BagInput; use Illuminate\Validation\ValidationException; use Tests\Fixtures\Values\TestBag; use Tests\Fixtures\Value...
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/tests/Fixtures/BagWithoutFactoryAttribute.php
tests/Fixtures/BagWithoutFactoryAttribute.php
<?php declare(strict_types=1); namespace Tests\Fixtures; use Bag\Bag; use Bag\Traits\HasFactory; readonly class BagWithoutFactoryAttribute extends Bag { use HasFactory; public function __construct( public string $name, public int $age, ) { } }
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/tests/Fixtures/ObjectToBagInvalidBag.php
tests/Fixtures/ObjectToBagInvalidBag.php
<?php declare(strict_types=1); namespace Tests\Fixtures; use Bag\Attributes\Bag; use Bag\Traits\HasBag; #[Bag('InvalidBagName')] class ObjectToBagInvalidBag { use HasBag; }
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/tests/Fixtures/ObjectToBagPublic.php
tests/Fixtures/ObjectToBagPublic.php
<?php declare(strict_types=1); namespace Tests\Fixtures; use Bag\Attributes\Bag; use Bag\Traits\HasBag; use Tests\Fixtures\Values\NullableWithDefaultValueBag; #[Bag(NullableWithDefaultValueBag::class)] class ObjectToBagPublic { use HasBag; public function __construct( public string $name, p...
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/tests/Fixtures/BagWithMissingFactory.php
tests/Fixtures/BagWithMissingFactory.php
<?php declare(strict_types=1); namespace Tests\Fixtures; use Bag\Attributes\Factory; use Bag\Bag; use Bag\Traits\HasFactory; #[Factory('BagWithMissingFactoryFactory')] readonly class BagWithMissingFactory extends Bag { use HasFactory; public function __construct( public string $name, public...
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/tests/Fixtures/ObjectToBagProtected.php
tests/Fixtures/ObjectToBagProtected.php
<?php declare(strict_types=1); namespace Tests\Fixtures; use Bag\Attributes\Bag; use Bag\Traits\HasBag; use Tests\Fixtures\Values\NullableWithDefaultValueBag; #[Bag(NullableWithDefaultValueBag::class, Bag::PUBLIC | Bag::PROTECTED)] class ObjectToBagProtected { use HasBag; public function __construct( ...
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/tests/Fixtures/ObjectToBagAll.php
tests/Fixtures/ObjectToBagAll.php
<?php declare(strict_types=1); namespace Tests\Fixtures; use Bag\Attributes\Bag; use Bag\Traits\HasBag; use Tests\Fixtures\Values\NullableWithDefaultValueBag; #[Bag(NullableWithDefaultValueBag::class, Bag::PUBLIC | Bag::PROTECTED | Bag::PRIVATE)] class ObjectToBagAll { use HasBag; public function __constru...
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/tests/Fixtures/ObjectToBagNoAttribute.php
tests/Fixtures/ObjectToBagNoAttribute.php
<?php declare(strict_types=1); namespace Tests\Fixtures; use Bag\Traits\HasBag; class ObjectToBagNoAttribute { use HasBag; }
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/tests/Fixtures/Controllers/TestController.php
tests/Fixtures/Controllers/TestController.php
<?php declare(strict_types=1); namespace Tests\Fixtures\Controllers; use Tests\Fixtures\Models\CastedModel; use Tests\Fixtures\Values\BagWithRequestParams; class TestController { public function stringParam(string $stringParam) { } public function intParam(int $intParam) { } public f...
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/tests/Fixtures/Values/BagWithLotsOfTypes.php
tests/Fixtures/Values/BagWithLotsOfTypes.php
<?php declare(strict_types=1); namespace Tests\Fixtures\Values; use Bag\Attributes\Cast; use Bag\Attributes\MapName; use Bag\Bag; use Bag\Casts\CollectionOf; use Bag\Mappers\SnakeCase; use Illuminate\Support\Collection; use Tests\Fixtures\Collections\BagWithCollectionCollection; #[MapName(SnakeCase::class)] readonl...
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/tests/Fixtures/Values/BagWithOptionalCollection.php
tests/Fixtures/Values/BagWithOptionalCollection.php
<?php declare(strict_types=1); namespace Tests\Fixtures\Values; use Bag\Attributes\Cast; use Bag\Bag; use Bag\Casts\CollectionOf; use Bag\Values\Optional; use Illuminate\Support\Collection; readonly class BagWithOptionalCollection extends Bag { public function __construct( #[Cast(CollectionOf::class, Te...
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/tests/Fixtures/Values/HiddenParametersBag.php
tests/Fixtures/Values/HiddenParametersBag.php
<?php declare(strict_types=1); namespace Tests\Fixtures\Values; use Bag\Attributes\Hidden; use Bag\Bag; readonly class HiddenParametersBag extends Bag { public function __construct( public string $name, #[Hidden] public int $age, #[Hidden] public string $email ) { ...
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/tests/Fixtures/Values/BagWithOptionalsAndValidation.php
tests/Fixtures/Values/BagWithOptionalsAndValidation.php
<?php declare(strict_types=1); namespace Tests\Fixtures\Values; use Bag\Bag; use Bag\Values\Optional; readonly class BagWithOptionalsAndValidation extends Bag { public function __construct( public string $name, public Optional|int $age, public Optional|string|null $email, ) { } ...
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/tests/Fixtures/Values/CastedModelValues.php
tests/Fixtures/Values/CastedModelValues.php
<?php declare(strict_types=1); namespace Tests\Fixtures\Values; use Bag\Attributes\MapName; use Bag\Bag; use Bag\Mappers\SnakeCase; #[MapName(SnakeCase::class, SnakeCase::class)] readonly class CastedModelValues extends Bag { public function __construct( public ?string $name = null, public ?int ...
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/tests/Fixtures/Values/NullableWithDefaultValueBag.php
tests/Fixtures/Values/NullableWithDefaultValueBag.php
<?php declare(strict_types=1); namespace Tests\Fixtures\Values; use Bag\Bag; readonly class NullableWithDefaultValueBag extends Bag { public function __construct( public ?string $name = null, public ?int $age = null, public ?string $email = null, public ?TestBag $bag = null, ...
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/tests/Fixtures/Values/BagWithLaravelCollectionOf.php
tests/Fixtures/Values/BagWithLaravelCollectionOf.php
<?php declare(strict_types=1); namespace Tests\Fixtures\Values; use Bag\Attributes\Cast; use Bag\Bag; use Bag\Casts\CollectionOf; use Illuminate\Support\Collection; readonly class BagWithLaravelCollectionOf extends Bag { public function __construct( #[Cast(CollectionOf::class, TestBag::class)] p...
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/tests/Fixtures/Values/VariadicBag.php
tests/Fixtures/Values/VariadicBag.php
<?php declare(strict_types=1); namespace Tests\Fixtures\Values; use Bag\Bag; readonly class VariadicBag extends Bag { public array $values; public function __construct( public string $name, public int $age, mixed ...$values ) { $this->values = $values; } }
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/tests/Fixtures/Values/CastsDateBag.php
tests/Fixtures/Values/CastsDateBag.php
<?php declare(strict_types=1); namespace Tests\Fixtures\Values; use Bag\Attributes\Cast; use Bag\Bag; use Bag\Casts\DateTime; use Carbon\CarbonImmutable; readonly class CastsDateBag extends Bag { public function __construct( #[Cast(DateTime::class, format: 'Y-m-d')] public CarbonImmutable $date,...
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/tests/Fixtures/Values/CastInputOutputBag.php
tests/Fixtures/Values/CastInputOutputBag.php
<?php declare(strict_types=1); namespace Tests\Fixtures\Values; use Bag\Attributes\Cast; use Bag\Bag; use Illuminate\Support\Stringable; use Tests\Fixtures\Casts\CastInputOnly; use Tests\Fixtures\Casts\CastOutputOnly; readonly class CastInputOutputBag extends Bag { public function __construct( #[Cast(Ca...
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/tests/Fixtures/Values/TestBag.php
tests/Fixtures/Values/TestBag.php
<?php declare(strict_types=1); namespace Tests\Fixtures\Values; use Bag\Bag; readonly class TestBag extends Bag { public function __construct( public string $name, public int $age, public string $email ) { } }
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/tests/Fixtures/Values/MappedOutputNameClassBag.php
tests/Fixtures/Values/MappedOutputNameClassBag.php
<?php declare(strict_types=1); namespace Tests\Fixtures\Values; use Bag\Attributes\MapName; use Bag\Bag; use Bag\Mappers\SnakeCase; #[MapName(output: SnakeCase::class)] readonly class MappedOutputNameClassBag extends Bag { public function __construct( public string $nameGoesHere, public int $age...
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/tests/Fixtures/Values/StripExtraParametersBag.php
tests/Fixtures/Values/StripExtraParametersBag.php
<?php declare(strict_types=1); namespace Tests\Fixtures\Values; use Bag\Attributes\StripExtraParameters; use Bag\Bag; #[StripExtraParameters] readonly class StripExtraParametersBag extends Bag { public function __construct( public string $name, public int $age, public string $email )...
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/tests/Fixtures/Values/ComputedPropertyBag.php
tests/Fixtures/Values/ComputedPropertyBag.php
<?php declare(strict_types=1); namespace Tests\Fixtures\Values; use Bag\Attributes\Computed; use Bag\Bag; use Carbon\CarbonImmutable; readonly class ComputedPropertyBag extends Bag { #[Computed] public CarbonImmutable $dob; public function __construct( public string $name, public int $a...
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/tests/Fixtures/Values/MappedClassAndPropertyBag.php
tests/Fixtures/Values/MappedClassAndPropertyBag.php
<?php declare(strict_types=1); namespace Tests\Fixtures\Values; use Bag\Attributes\MapName; use Bag\Bag; use Bag\Mappers\CamelCase; use Bag\Mappers\SnakeCase; #[MapName(input: SnakeCase::class, output: SnakeCase::class)] readonly class MappedClassAndPropertyBag extends Bag { public function __construct( ...
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/tests/Fixtures/Values/MappedInputNameClassBag.php
tests/Fixtures/Values/MappedInputNameClassBag.php
<?php declare(strict_types=1); namespace Tests\Fixtures\Values; use Bag\Attributes\MapName; use Bag\Bag; use Bag\Mappers\SnakeCase; #[MapName(input: SnakeCase::class)] readonly class MappedInputNameClassBag extends Bag { public function __construct( public string $nameGoesHere, public int $ageGo...
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/tests/Fixtures/Values/NoPropertiesBag.php
tests/Fixtures/Values/NoPropertiesBag.php
<?php declare(strict_types=1); namespace Tests\Fixtures\Values; use Bag\Bag; readonly class NoPropertiesBag extends Bag { public function __construct() { } }
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/tests/Fixtures/Values/NoConstructorBag.php
tests/Fixtures/Values/NoConstructorBag.php
<?php declare(strict_types=1); namespace Tests\Fixtures\Values; use Bag\Bag; readonly class NoConstructorBag extends Bag { }
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/tests/Fixtures/Values/BagWithSingleArrayParameter.php
tests/Fixtures/Values/BagWithSingleArrayParameter.php
<?php declare(strict_types=1); namespace Tests\Fixtures\Values; use Bag\Bag; readonly class BagWithSingleArrayParameter extends Bag { public function __construct( public array $items ) { } }
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/tests/Fixtures/Values/CastsMagicDateBag.php
tests/Fixtures/Values/CastsMagicDateBag.php
<?php declare(strict_types=1); namespace Tests\Fixtures\Values; use Bag\Bag; use Carbon\CarbonImmutable; readonly class CastsMagicDateBag extends Bag { public function __construct( public CarbonImmutable $date, ) { } }
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/tests/Fixtures/Values/OptionalValidateUsingAttributesAndRulesMethodBag.php
tests/Fixtures/Values/OptionalValidateUsingAttributesAndRulesMethodBag.php
<?php declare(strict_types=1); namespace Tests\Fixtures\Values; use Bag\Attributes\Validation\Max; use Bag\Attributes\Validation\Required; use Bag\Bag; readonly class OptionalValidateUsingAttributesAndRulesMethodBag extends Bag { public function __construct( #[Required] #[Max(100)] publi...
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/tests/Fixtures/Values/WrappedBothBag.php
tests/Fixtures/Values/WrappedBothBag.php
<?php declare(strict_types=1); namespace Tests\Fixtures\Values; use Bag\Attributes\Wrap; use Bag\Attributes\WrapJson; use Bag\Bag; #[Wrap('wrapper')] #[WrapJson('json_wrapper')] readonly class WrappedBothBag extends Bag { public function __construct( public string $name, public int $age, ) {...
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/tests/Fixtures/Values/BagWithFactoryAndCollection.php
tests/Fixtures/Values/BagWithFactoryAndCollection.php
<?php declare(strict_types=1); namespace Tests\Fixtures\Values; use Bag\Attributes\Collection; use Bag\Attributes\Factory; use Bag\Bag; use Bag\Traits\HasFactory; use Tests\Fixtures\Collections\BagWithFactoryAndCollectionCollection; use Tests\Fixtures\Factories\BagWithFactoryFactory; #[Factory(BagWithFactoryFactory...
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/tests/Fixtures/Values/NullablePropertiesBag.php
tests/Fixtures/Values/NullablePropertiesBag.php
<?php declare(strict_types=1); namespace Tests\Fixtures\Values; use Bag\Bag; readonly class NullablePropertiesBag extends Bag { public function __construct( public ?string $name, public ?int $age, public ?string $email, public ?TestBag $bag, ) { } }
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/tests/Fixtures/Values/BagWithoutFactoryAttribute.php
tests/Fixtures/Values/BagWithoutFactoryAttribute.php
<?php declare(strict_types=1); namespace Tests\Fixtures\Values; use Bag\Bag; use Bag\Traits\HasFactory; readonly class BagWithoutFactoryAttribute extends Bag { use HasFactory; }
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/tests/Fixtures/Values/MappedNameClassBag.php
tests/Fixtures/Values/MappedNameClassBag.php
<?php declare(strict_types=1); namespace Tests\Fixtures\Values; use Bag\Attributes\MapInputName; use Bag\Attributes\MapName; use Bag\Bag; use Bag\Mappers\SnakeCase; use Bag\Mappers\Stringable; #[MapName(input: Stringable::class, output: SnakeCase::class, inputParams: ['upper'])] #[MapInputName(SnakeCase::class)] re...
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false