Skip to content

Commit

Permalink
Merge branch 'hotfix/magic-set-get' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
SmetDenis committed Aug 6, 2016
2 parents db58cbb + 664973e commit 7ca58fc
Showing 1 changed file with 0 additions and 43 deletions.
43 changes: 0 additions & 43 deletions src/Data.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,49 +117,6 @@ public function remove($name)
return $this;
}

/**
* Magic method to allow for correct isset() calls
* @param string $name The key to search for
* @return boolean
*/
public function __isset($name)
{
return $this->offsetExists($name);
}

/**
* Magic method to get values as object properties
* @param string $name The key of the data to fetch
* @return mixed
*/
public function __get($name)
{
if (!$this->has($name)) {
return null;
}

return $this->offsetGet($name);
}

/**
* Magic method to set values through object properties
* @param string $name The key of the data to set
* @param mixed $value The value to set
*/
public function __set($name, $value)
{
$this->offsetSet($name, $value);
}

/**
* Magic method to unset values using unset()
* @param string $name The key of the data to set
*/
public function __unset($name)
{
$this->offsetUnset($name);
}

/**
* Magic method to convert the data to a string
* Returns a serialized version of the data contained in
Expand Down

0 comments on commit 7ca58fc

Please sign in to comment.