Skip to content

Commit

Permalink
Removing the "property" from a few methods in EntityTrait
Browse files Browse the repository at this point in the history
  • Loading branch information
Florian Krämer committed Jan 22, 2017
1 parent 116d9d9 commit 39726d1
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions src/Datasource/EntityTrait.php
Expand Up @@ -424,7 +424,7 @@ public function hiddenProperties($properties = null)
* @param bool $merge Merge the new properties with the existing. By default false.
* @return self
*/
public function setHiddenProperties(array $properties, $merge = false)
public function setHidden(array $properties, $merge = false)
{
if ($merge === false) {
$this->_hidden = $properties;
Expand All @@ -442,7 +442,7 @@ public function setHiddenProperties(array $properties, $merge = false)
*
* @return array
*/
public function getHiddenProperties()
public function getHidden()
{
return $this->_hidden;
}
Expand All @@ -459,11 +459,10 @@ public function getHiddenProperties()
public function virtualProperties($properties = null)
{
if ($properties === null) {
return $this->_virtual;
return $this->getVirtual();
}
$this->_virtual = $properties;

return $this;
return $this->setVirtual($properties);
}

/**
Expand All @@ -473,7 +472,7 @@ public function virtualProperties($properties = null)
* @param bool $merge Merge the new properties with the existing. By default false.
* @return self
*/
public function setVirtualProperties(array $properties, $merge = false)
public function setVirtual(array $properties, $merge = false)
{
if ($merge === false) {
$this->_virtual = $properties;
Expand All @@ -491,7 +490,7 @@ public function setVirtualProperties(array $properties, $merge = false)
*
* @return array
*/
public function getVirtualProperties()
public function getVirtual()
{
return $this->_virtual;
}
Expand Down

0 comments on commit 39726d1

Please sign in to comment.