Am 29.03.2014 03:53, schrieb Marco Pivetta:
> This will likely just open a can of worms.
> You can see the discussion that went on at
>
http://verraes.net/2013/09/sensible-interfaces/ to have just a very
> very small example on why this will (probably) make everybody unhappy:
> both who is for the suffixes/prefixes and for who isn't.
>
> I would simply avoid this particular discussion about naming style as
> a part of the PSRs simply because both approaches make sense in their
> own way.
Naming is very important and divisive topic for interoperability group.
No question it deserves own PSR. Maybe this thread is a good start?
<?php
namespace Psr\Cache {
interface Repository {}
interface Collection {}
interface Item {}
}
namespace MyProject\Cache {
use \Psr\Cache;
class Tag implements Cache\Item {}
class Tags implements Cache\Collection {}
class Level1 implements Cache\Repository {}
class Level2 implements Cache\Repository {}
class Level3 implements Cache\Repository {}
class Preheat {
public function __construct(Cache\Repository $repo) {}
public function dump() {}
public function restore() {}
}
}