Browse Source

Remove undersocre form protected property name.

Robert Pustułka 7 years ago
parent
commit
cf0e65fab9
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/ORM/Locator/TableLocator.php

+ 3 - 3
src/ORM/Locator/TableLocator.php

@@ -32,7 +32,7 @@ class TableLocator implements LocatorInterface
      *
      * @var array
      */
-    protected $_locations = [];
+    protected $locations = [];
 
     /**
      * Configuration for aliases.
@@ -273,7 +273,7 @@ class TableLocator implements LocatorInterface
             return $options['className'];
         }
 
-        foreach ($this->_locations as $location) {
+        foreach ($this->locations as $location) {
             $class = App::className($options['className'], $location, 'Table');
             if ($class !== false) {
                 return $class;
@@ -354,7 +354,7 @@ class TableLocator implements LocatorInterface
     public function addLocation($location)
     {
         $location = str_replace('\\', '/', $location);
-        $this->_locations[] = trim($location, '/');
+        $this->locations[] = trim($location, '/');
 
         return $this;
     }