Skip to content
Permalink
Browse files

Fix up doc blocks in event decorators.

  • Loading branch information...
markstory committed Jul 6, 2016
1 parent 9774b40 commit 0a5f611f4edef6b2f3288fb29ddf23b6a7d2b691
@@ -14,6 +14,9 @@
*/
namespace Cake\Event\Decorator;
/**
* Common base class for event decorator subclasses.
*/
abstract class AbstractDecorator
{
@@ -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()
{
@@ -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()
{
@@ -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)
*
@@ -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)
*

0 comments on commit 0a5f611

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