Skip to content

Commit

Permalink
Rename object key back to _key
Browse files Browse the repository at this point in the history
  • Loading branch information
mahagr committed May 8, 2018
1 parent f7832e7 commit f03eb69
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions system/src/Grav/Framework/Object/Base/ObjectTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ trait ObjectTrait
/**
* @var string
*/
private $key;
private $_key;

/**
* @return string
Expand Down Expand Up @@ -52,7 +52,7 @@ public function getType($prefix = true)
*/
public function getKey()
{
return $this->key ?: $this->getType() . '@' . spl_object_hash($this);
return $this->_key ?: $this->getType() . '@' . spl_object_hash($this);
}

/**
Expand Down Expand Up @@ -173,7 +173,7 @@ public function __toString()
*/
protected function setKey($key)
{
$this->key = (string) $key;
$this->_key = (string) $key;

return $this;
}
Expand Down

0 comments on commit f03eb69

Please sign in to comment.