Skip to content

Commit

Permalink
expose generated directory in properties
Browse files Browse the repository at this point in the history
  • Loading branch information
Baptouuuu committed Nov 1, 2023
1 parent 92a7a4b commit c7020eb
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
@@ -1,5 +1,12 @@
# Changelog

## [Unreleased]

### Added

- `Properties\Innmind\Filesystem\Adapter\AddDirectory::directory()`
- `Properties\Innmind\Filesystem\Adapter\RemoveAddRemoveModificationsDoesntAddTheFile::directory()`

## 7.1.0 - 2023-10-22

### Added
Expand Down
5 changes: 5 additions & 0 deletions properties/Adapter/AddDirectory.php
Expand Up @@ -32,6 +32,11 @@ public static function any(): Set
return FDirectory::any()->map(static fn($directory) => new self($directory));
}

public function directory(): Directory
{
return $this->directory;
}

public function applicableTo(object $adapter): bool
{
return !$adapter->contains($this->directory->name());
Expand Down
Expand Up @@ -41,6 +41,11 @@ public static function any(): Set
);
}

public function directory(): Directory
{
return $this->directory;
}

public function applicableTo(object $adapter): bool
{
return !$adapter->contains($this->directory->name());
Expand Down

0 comments on commit c7020eb

Please sign in to comment.