public function getContents()
	{
		// make a copy to leave the original container untouched
		$data = $this->data;

		// delete all expired variables
		foreach($data[static::EXPIRE_DATA_KEY] as $key => $expiration)
		{
			if ($expiration[1] === static::EXPIRE_STATE_EXPIRED)
			{
				unset($data[static::EXPIRE_DATA_KEY][$key]);
				\Arr::delete($data, $this->prefixKey($key));
			}
		}

		// and return what's left over
		return $data;
	}
public function getContents()
	{
		// make a copy to leave the original container untouched
		$data = $this->data;

		// delete all expired variables
		foreach($data[static::EXPIRE_DATA_KEY] as $key => $expiration)
		{
			if ($expiration[1] === static::EXPIRE_STATE_EXPIRED)
			{
				unset($data[static::EXPIRE_DATA_KEY][$key]);
				\Arr::delete($data, $this->prefixKey($key));
			}
		}

		// and return what's left over
		return $data;
	}
public function getContents ( ) { // make a copy to leave the original container untouched $ data = $ this -> data ; // delete all expired variables foreach ( $ data [ static :: EXPIRE_DATA_KEY ] as $ key => $ expiration ) { if ( $ expiration [ 1 ] === static :: EXPIRE_STATE_EXPIRED ) { unset ( $ data [ static :: EXPIRE_DATA_KEY ] [ $ key ] ) ; \ Arr :: delete ( $ data , $ this -> prefixKey ( $ key ) ) ; } } // and return what's left over return $ data ; }
Returns the container's data

@return array
Returns the container s data