Skip to content

Commit

Permalink
moved to psr-4, closed some extension points
Browse files Browse the repository at this point in the history
  • Loading branch information
maschmann committed Dec 30, 2014
1 parent 6908c71 commit 02cfb1f
Show file tree
Hide file tree
Showing 21 changed files with 15 additions and 15 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
"phpunit\/phpunit": "~4.0"
},
"autoload": {
"psr-0": {
"": "lib/"
"psr-4": {
"Asm\\": "src/"
}
}
}
6 changes: 3 additions & 3 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@
>
<testsuites>
<testsuite name="PhpUtilities testsuite">
<directory>./lib/Asm/Tests</directory>
<directory>./src/Tests</directory>
</testsuite>
</testsuites>

<filter>
<whitelist>
<directory>./lib/Asm</directory>
<directory>./src</directory>
<exclude>
<directory>./lib/Asm/Tests</directory>
<directory>./src/Tests</directory>
<directory>./vendor</directory>
</exclude>
</whitelist>
Expand Down
2 changes: 1 addition & 1 deletion lib/Asm/Config/Config.php → src/Config/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
namespace Asm\Config;

/**
* Class ConfigManager
* Class Config
*
* @package Asm\Config
* @author marc aschmann <maschmann@gmail.com>
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* @package Asm\Config
* @author marc aschmann <maschmann@gmail.com>
*/
class ConfigDefault extends ConfigAbstract implements ConfigInterface
final class ConfigDefault extends ConfigAbstract implements ConfigInterface
{
/**
* default method
Expand Down
4 changes: 2 additions & 2 deletions lib/Asm/Config/ConfigEnv.php → src/Config/ConfigEnv.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@
* @package Asm\Config
* @author marc aschmann <maschmann@gmail.com>
*/
class ConfigEnv extends ConfigAbstract implements ConfigInterface
final class ConfigEnv extends ConfigAbstract implements ConfigInterface
{
/**
* @var string
*/
protected $defaultEnv = 'prod';
private $defaultEnv = 'prod';

/**
* default method
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* @package Asm\Config
* @author marc aschmann <maschmann@gmail.com>
*/
class ConfigTimer extends ConfigAbstract implements ConfigInterface
final class ConfigTimer extends ConfigAbstract implements ConfigInterface
{
/**
* default method
Expand Down
2 changes: 1 addition & 1 deletion lib/Asm/Data/Data.php → src/Data/Data.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class Data implements DataInterface
*
* @var array
*/
protected $data = array();
private $data = array();

/**
* clears the data(!) content of the object
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,18 @@
* @package Asm\Data
* @author marc aschmann <maschmann@gmail.com>
*/
class DataCollection extends Data implements DataInterface, \Iterator
final class DataCollection extends Data implements DataInterface, \Iterator
{

/**
* @var integer
*/
protected $position;
private $position;

/**
* @var integer
*/
protected $totalCount = 0;
private $totalCount = 0;

/**
* @param array $data
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion lib/Asm/Timer/Timer.php → src/Timer/Timer.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* @package Asm\Timer
* @author Marc Aschmann <maschmann@gmail.com>
*/
class Timer
final class Timer
{
/**
* @var \Asm\Data\Data
Expand Down

0 comments on commit 02cfb1f

Please sign in to comment.