Dhii/callback-abstract

View on GitHub
README.md

Summary

Maintainability
Test Coverage
# Dhii - Callback Aware Traits

[![Build Status](https://travis-ci.org/Dhii/callback-abstract.svg?branch=master)](https://travis-ci.org/Dhii/callback-abstract)
[![Code Climate](https://codeclimate.com/github/Dhii/callback-abstract/badges/gpa.svg)](https://codeclimate.com/github/Dhii/callback-abstract)
[![Test Coverage](https://codeclimate.com/github/Dhii/callback-abstract/badges/coverage.svg)](https://codeclimate.com/github/Dhii/callback-abstract/coverage)
[![Latest Stable Version](https://poser.pugx.org/dhii/callback-abstract/version)](https://packagist.org/packages/dhii/callback-abstract)
[![Latest Unstable Version](https://poser.pugx.org/dhii/callback-abstract/v/unstable)](https://packagist.org/packages/dhii/callback-abstract)
[![This package complies with Dhii standards](https://img.shields.io/badge/Dhii-Compliant-green.svg?style=flat-square)][Dhii]

Traits for objects that are aware of callback functions.

## Traits
- [`ArgsAwareTrait`][ArgsAwareTrait] - Functionality for awareness of an argument list.
- [`CallbackAwareTrait`][CallbackAwareTrait] - Functionality for awareness of a callback.
- [`InvokeCallableCapableTrait`][InvokeCallableCapableTrait] - Allows structured invocation of any callable.
- [`InvokeCallbackCapableTrait`][InvokeCallbackCapableTrait] - Allows structured invocation of an assigned callback.

[Dhii]: https://github.com/Dhii/dhii

[ArgsAwareTrait]:                           src/ArgsAwareTrait.php
[CallbackAwareTrait]:                       src/CallbackAwareTrait.php
[InvokeCallableCapableTrait]:               src/InvokeCallableCapableTrait.php
[InvokeCallbackCapableTrait]:               src/InvokeCallbackCapableTrait.php