Skip to content

Commit

Permalink
Fix up doc blocks in event decorators.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Jul 6, 2016
1 parent 9774b40 commit 0a5f611
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 12 deletions.
3 changes: 3 additions & 0 deletions src/Event/Decorator/AbstractDecorator.php
Expand Up @@ -14,6 +14,9 @@
*/
namespace Cake\Event\Decorator;

/**
* Common base class for event decorator subclasses.
*/
abstract class AbstractDecorator
{

Expand Down
6 changes: 4 additions & 2 deletions src/Event/Decorator/ConditionDecorator.php
Expand Up @@ -19,13 +19,15 @@

/**
* Event Condition Decorator
*
* Use this decorator to allow your event listener to only
* be invoked if the `if` and/or `unless` conditions pass.
*/
class ConditionDecorator extends AbstractDecorator
{

/**
* @inheritdoc
* @return mixed
* {@inheritDoc}
*/
public function __invoke()
{
Expand Down
9 changes: 7 additions & 2 deletions src/Event/Decorator/SubjectFilterDecorator.php
Expand Up @@ -19,13 +19,18 @@

/**
* Event Subject Filter Decorator
*
* Use this decorator to allow your event listener to only
* be invoked if event subject matches the `allowedSubject` option.
*
* The `allowedSubject` option can be a list of class names, if you want
* to check multiple classes.
*/
class SubjectFilterDecorator extends AbstractDecorator
{

/**
* @inheritdoc
* @return mixed
* {@inheritDoc}
*/
public function __invoke()
{
Expand Down
4 changes: 0 additions & 4 deletions tests/TestCase/Event/Decorator/ConditionDecoratorTest.php
@@ -1,9 +1,5 @@
<?php
/**
* EventTest file
*
* Test Case for Event class
*
* CakePHP : Rapid Development Framework (http://cakephp.org)
* Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
*
Expand Down
4 changes: 0 additions & 4 deletions tests/TestCase/Event/Decorator/SubjectFilterDecoratorTest.php
@@ -1,9 +1,5 @@
<?php
/**
* EventTest file
*
* Test Case for Event class
*
* CakePHP : Rapid Development Framework (http://cakephp.org)
* Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
*
Expand Down

0 comments on commit 0a5f611

Please sign in to comment.