This commit is contained in:
2020-09-04 19:00:27 +08:00
parent 30d805f41d
commit 4f8db41ca1
3 changed files with 11 additions and 11 deletions
+2 -2
View File
@@ -109,7 +109,7 @@ abstract class Pool extends Component
*/
public function hasItem($name)
{
return $this->hasLength($name) > 0;
return $this->size($name) > 0;
}
@@ -117,7 +117,7 @@ abstract class Pool extends Component
* @param $name
* @return mixed
*/
public function hasLength($name)
public function size($name)
{
if (!isset($this->_items[$name])) {
return 0;