Skip to content
This repository was archived by the owner on Oct 26, 2024. It is now read-only.

Commit 02cfb1f

Browse files
committed
moved to psr-4, closed some extension points
1 parent 6908c71 commit 02cfb1f

21 files changed

+15
-15
lines changed

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
"phpunit\/phpunit": "~4.0"
2020
},
2121
"autoload": {
22-
"psr-0": {
23-
"": "lib/"
22+
"psr-4": {
23+
"Asm\\": "src/"
2424
}
2525
}
2626
}

phpunit.xml.dist

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@
1313
>
1414
<testsuites>
1515
<testsuite name="PhpUtilities testsuite">
16-
<directory>./lib/Asm/Tests</directory>
16+
<directory>./src/Tests</directory>
1717
</testsuite>
1818
</testsuites>
1919

2020
<filter>
2121
<whitelist>
22-
<directory>./lib/Asm</directory>
22+
<directory>./src</directory>
2323
<exclude>
24-
<directory>./lib/Asm/Tests</directory>
24+
<directory>./src/Tests</directory>
2525
<directory>./vendor</directory>
2626
</exclude>
2727
</whitelist>

lib/Asm/Config/Config.php renamed to src/Config/Config.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
namespace Asm\Config;
1111

1212
/**
13-
* Class ConfigManager
13+
* Class Config
1414
*
1515
* @package Asm\Config
1616
* @author marc aschmann <[email protected]>
File renamed without changes.

lib/Asm/Config/ConfigDefault.php renamed to src/Config/ConfigDefault.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* @package Asm\Config
1616
* @author marc aschmann <[email protected]>
1717
*/
18-
class ConfigDefault extends ConfigAbstract implements ConfigInterface
18+
final class ConfigDefault extends ConfigAbstract implements ConfigInterface
1919
{
2020
/**
2121
* default method

lib/Asm/Config/ConfigEnv.php renamed to src/Config/ConfigEnv.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@
1717
* @package Asm\Config
1818
* @author marc aschmann <[email protected]>
1919
*/
20-
class ConfigEnv extends ConfigAbstract implements ConfigInterface
20+
final class ConfigEnv extends ConfigAbstract implements ConfigInterface
2121
{
2222
/**
2323
* @var string
2424
*/
25-
protected $defaultEnv = 'prod';
25+
private $defaultEnv = 'prod';
2626

2727
/**
2828
* default method
File renamed without changes.

lib/Asm/Config/ConfigTimer.php renamed to src/Config/ConfigTimer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* @package Asm\Config
1616
* @author marc aschmann <[email protected]>
1717
*/
18-
class ConfigTimer extends ConfigAbstract implements ConfigInterface
18+
final class ConfigTimer extends ConfigAbstract implements ConfigInterface
1919
{
2020
/**
2121
* default method

lib/Asm/Data/Data.php renamed to src/Data/Data.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class Data implements DataInterface
2323
*
2424
* @var array
2525
*/
26-
protected $data = array();
26+
private $data = array();
2727

2828
/**
2929
* clears the data(!) content of the object

lib/Asm/Data/DataCollection.php renamed to src/Data/DataCollection.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,18 @@
1515
* @package Asm\Data
1616
* @author marc aschmann <[email protected]>
1717
*/
18-
class DataCollection extends Data implements DataInterface, \Iterator
18+
final class DataCollection extends Data implements DataInterface, \Iterator
1919
{
2020

2121
/**
2222
* @var integer
2323
*/
24-
protected $position;
24+
private $position;
2525

2626
/**
2727
* @var integer
2828
*/
29-
protected $totalCount = 0;
29+
private $totalCount = 0;
3030

3131
/**
3232
* @param array $data

0 commit comments

Comments
 (0)