Skip to content
Permalink
Browse files

Removing the "property" from a few methods in EntityTrait

  • Loading branch information...
burzum committed Jan 22, 2017
1 parent 116d9d9 commit 39726d1fb80ebd9043f80cde129121cf2c0c075b
Showing with 6 additions and 7 deletions.
  1. +6 −7 src/Datasource/EntityTrait.php
@@ -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;
@@ -442,7 +442,7 @@ public function setHiddenProperties(array $properties, $merge = false)
*
* @return array
*/
public function getHiddenProperties()
public function getHidden()
{
return $this->_hidden;
}
@@ -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);
}
/**
@@ -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;
@@ -491,7 +490,7 @@ public function setVirtualProperties(array $properties, $merge = false)
*
* @return array
*/
public function getVirtualProperties()
public function getVirtual()
{
return $this->_virtual;
}

0 comments on commit 39726d1

Please sign in to comment.
You can’t perform that action at this time.