Change visibility from protected to private where possible

This commit is contained in:
PJ Dietz 2020-08-13 07:36:30 -04:00
parent 4796e1d5c5
commit 2d7db1ed83
2 changed files with 2 additions and 2 deletions

View File

@ -71,7 +71,7 @@ class Dispatcher implements DispatcherInterface
* @param mixed[] $dispatchables * @param mixed[] $dispatchables
* @return DispatchStack * @return DispatchStack
*/ */
protected function getDispatchStack($dispatchables) private function getDispatchStack($dispatchables)
{ {
$stack = new DispatchStack($this); $stack = new DispatchStack($this);
foreach ($dispatchables as $dispatchable) { foreach ($dispatchables as $dispatchable) {

View File

@ -15,7 +15,7 @@ use WellRESTed\Transmission\TransmitterInterface;
class Server class Server
{ {
/** @var mixed[] */ /** @var mixed[] */
protected $attributes = []; private $attributes = [];
/** @var DispatcherInterface */ /** @var DispatcherInterface */
private $dispatcher; private $dispatcher;
/** @var string|null attribute name for matched path variables */ /** @var string|null attribute name for matched path variables */