php-packages / fluent
Readability is the key.
1.0.0
2015-02-03 16:26 UTC
Requires (Dev)
- henrikbjorn/phpspec-code-coverage: 1.0.*
- phpspec/phpspec: 2.1.*
This package is not auto-updated.
Last update: 2024-12-21 18:29:25 UTC
README
Readability is the key. Version 1.0.1
.
Navigation
Installation
composer require php-packages/fluent
Usage
class A { use \PhpPackages\Fluent\FluentTrait; } $a = new A; $a->should->do->something("useful"); $a->getFluent()->getCalls(); # => ["should", "do", ["something", ["useful"]]] $a->getFluent()->clearCalls(); $a->_jump_and_scream(); $a->postCatsInInstagram(); $a->getFluent()->getCalls(); # => ["jump", "and", "scream", "post", "cats", "in", "instagram"] $a->getFluent()->clearCalls(); $a->doThat()->and->doThis(123, null); $a->getFluent()->getCalls(); # => ["do", "that", "and", "do", ["this", [123, null]]]
Additional information
Fluent is licensed under the MIT License (MIT).