Skip to content

Commit d53198f

Browse files
author
liutao
committed
feat: init
0 parents  commit d53198f

3 files changed

Lines changed: 26 additions & 0 deletions

File tree

.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/.phpunit.cache
2+
/vendor
3+
composer.lock
4+
/.idea
5+
/.fleet
6+
/.vscode
7+
.phpunit.result.cache

composer.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"name": "microphp/contract",
3+
"type": "library",
4+
"autoload": {
5+
"psr-4": {
6+
"Microphp\\Contract\\": "src/"
7+
}
8+
},
9+
"require": {}
10+
}

src/ArrayAble.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?php
2+
declare(strict_types=1);
3+
4+
namespace MicroPHP\Contract;
5+
6+
interface ArrayAble
7+
{
8+
public function toArray(): array;
9+
}

0 commit comments

Comments
 (0)