Readability is the key.

1.0.0 2015-02-03 16:26 UTC

This package is not auto-updated.

Last update: 2024-10-26 17:45:34 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).