Anemone::__get()

Proxy for missing properties.

Table of Contents
  1. Description
  2. Example

Description

Anemone::__get(string $key): mixed;

This method will be called when a public property is not available on class Anemone. By default, this method will first try to find an existing public method and call it with empty argument.

Example

$anemone = new Anemone([1, 2, 3, 4, 5]);

$asdf = $anemone->asdf; // Returns `null` because property `asdf` does not exist
$count = $anemone->count; // Returns `$anemone->count()` because method `count()` does exist

Anemone::__get()

Proxy for missing properties.

Anemone::any()

Checks if at least one item in the data passes the test.

Anemone::is()

Filters the data so that only items that pass the test are left.

Anemone::not()

Filters the data so that only items that do not pass the test are left.

Anemone::pluck()

Returns a new data set contains values from the key on every item.