Skip to content

Commit 86a81f5

Browse files
committed
Traverse colletctions
1 parent 8fbdf1f commit 86a81f5

File tree

6 files changed

+349
-239
lines changed

6 files changed

+349
-239
lines changed

src/Format/Arr.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@
1010

1111
namespace MaplePHP\DTO\Format;
1212

13-
use MaplePHP\DTO\Traits\ArrayUtilities;
13+
use MaplePHP\DTO\Traits\CollectionUtilities;
1414
use MaplePHP\DTO\Traverse;
1515

1616
final class Arr extends FormatAbstract implements FormatInterface
1717
{
18-
use ArrayUtilities;
18+
use CollectionUtilities;
1919

2020
/**
2121
* This will make the collection accessible through static initiations

src/Format/FormatAbstract.php

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -62,19 +62,6 @@ public function __toString(): string
6262
return (string)$this->get();
6363
}
6464

65-
/**
66-
* Sprit
67-
* @param string $add
68-
* @return self
69-
*/
70-
public function sprint(string $add): static
71-
{
72-
if (!is_null($this->raw)) {
73-
$this->raw = sprintf($add, $this->raw);
74-
}
75-
return $this;
76-
}
77-
7865
/**
7966
* Access and return format class object
8067
* @param string $dtoClassName The DTO format class name

0 commit comments

Comments
 (0)