Skip to content

Commit 8f4dc79

Browse files
committed
feat: add method in Resources class to get its array
1 parent f83ed70 commit 8f4dc79

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/Model/Resources.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,12 @@ public function add(MtaResource $resource): void
3737
{
3838
$this->resources[] = $resource;
3939
}
40+
41+
/**
42+
* @return MtaResource[]
43+
*/
44+
public function all(): array
45+
{
46+
return $this->resources;
47+
}
4048
}

0 commit comments

Comments
 (0)