src/Item/Item.php
public function data(TimePoint $now = null)
    {
        if ($now && $this->isExpired($now)) {
            return null;
        }

        return $this->data;
    }
public function data(TimePoint $now = null)
    {
        if ($now && $this->isExpired($now)) {
            return null;
        }

        return $this->data;
    }
public function data ( TimePoint $ now = null ) { if ( $ now && $ this -> isExpired ( $ now ) ) { return null ; } return $ this -> data ; }
If provided, the data will be checked for expiration.

@param TimePoint|null $now

@return mixed
If provided the data will be checked for expiration .