Skip to content
Permalink
Browse files

mark __get and __set as deprecated

  • Loading branch information...
thinkingmedia
thinkingmedia committed Aug 31, 2016
1 parent 6f3c028 commit 9115eb1bb3d66f35b15ef25704d183db03c9f9c3
Showing with 4 additions and 2 deletions.
  1. +4 −2 src/Event/Event.php
@@ -19,8 +19,8 @@
* payload. The name can be any string that uniquely identifies the event across the application, while the subject
* represents the object that the event applies to.
*
* @property string $name Name of the event
* @property object $subject The object this event applies to
* @property string $name (deprecated) Name of the event
* @property object $subject (deprecated) The object this event applies to
* @property mixed $result (deprecated) Property used to retain the result value of the event listeners
* @property array $data (deprecated) Custom data for the method that receives the event
*/
@@ -88,6 +88,7 @@ public function __construct($name, $subject = null, array $data = null)
*
* @param string $attribute Attribute name.
* @return mixed
* @deprecated Public properties will be removed.
*/
public function __get($attribute)
{
@@ -108,6 +109,7 @@ public function __get($attribute)
* @param string $attribute Attribute name.
* @param mixed $value The value to set.
* @return void
* @deprecated Public properties will be removed.
*/
public function __set($attribute, $value)
{

0 comments on commit 9115eb1

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