Aeon\Collection\DayValueSet

( 1.x )
Introduction

Class synopis

class final DayValueSet implements \Countable
{
public __construct ( DayValue $dayValues )
public static createEmpty ( Day $start , Day $end ) : self
public static createWith ( Day $start , Day $end , mixed $value ) : self
public fillMissingWith ( mixed $value ) : self
public put ( DayValue $dayValues ) : self
public remove ( Day $days ) : self
public has ( Day $day ) : bool
public get ( Day $day ) : DayValue
public first ( void ) : ? DayValue
public last ( void ) : ? DayValue
public count ( void ) : int
public filter ( callable $callback ) : self
public map ( callable $callback ) : self
public reduce ( callable $callback , [ mixed $initial = null ] ) : mixed
public toDays ( void ) : Days
public values ( void ) : array
public sortAscending ( void ) : self
public sortDescending ( void ) : self
public take ( int $days ) : self
public slice ( int $offset , int $days ) : self
public drop ( int $offset ) : self
}
Table of Contents