Skip to content

Commit

Permalink
refactor: remove file scope
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonTheAdams committed Aug 9, 2023
1 parent 77073cb commit 6262862
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 22 deletions.
17 changes: 0 additions & 17 deletions src/Framework/FieldsAPI/ValueObjects/PersistenceScope.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ class PersistenceScope
{
const DONATION = 'donation';
const DONOR = 'donor';
const FILE = 'file';
const CALLBACK = 'callback';

/**
Expand All @@ -37,14 +36,6 @@ public static function donor(): self
return new self(self::DONOR);
}

/**
* @unreleased
*/
public static function file(): self
{
return new self(self::FILE);
}

/**
* @unreleased
*/
Expand Down Expand Up @@ -77,14 +68,6 @@ public function isDonor(): bool
return $this->scope === self::DONOR;
}

/**
* @unreleased
*/
public function isFile(): bool
{
return $this->scope === self::FILE;
}

/**
* @unreleased
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ public function testStaticBuilders()
{
$donation = PersistenceScope::donation();
$donor = PersistenceScope::donor();
$file = PersistenceScope::file();
$callback = PersistenceScope::callback();

self::assertInstanceOf(PersistenceScope::class, $donation);
Expand All @@ -26,9 +25,6 @@ public function testStaticBuilders()
self::assertInstanceOf(PersistenceScope::class, $donor);
self::assertTrue($donor->isDonor());

self::assertInstanceOf(PersistenceScope::class, $file);
self::assertTrue($file->isFile());

self::assertInstanceOf(PersistenceScope::class, $callback);
self::assertTrue($callback->isCallback());
}
Expand All @@ -51,7 +47,6 @@ public function testIsMethods()

self::assertTrue($donation->isDonation());
self::assertFalse($donation->isDonor());
self::assertFalse($donation->isFile());
self::assertFalse($donation->isCallback());
self::assertTrue($donation->is(PersistenceScope::DONATION));
}
Expand Down

0 comments on commit 6262862

Please sign in to comment.