A cache item.

CloneableFinalInstantiable
ImplementsPsr\Cache\CacheItemInterface
Methods
public __construct( $key)
 
    public expiresAfter( $time)
     

    {@inheritdoc}

    public expiresAt( $expiration)
     

    {@inheritdoc}

    public get()
     

    {@inheritdoc}

    public getKey()
     

    {@inheritdoc}

    public isHit()
     

    {@inheritdoc}

    public set( $value)
     

    {@inheritdoc}

    Methods
    protected currentTime()
    Properties
    private $expiration
     
    • var DateTime|null
    private $isHit
     
    • var bool
    private $key
     
    • var string
    private $value
     
    • var mixed
    Methods
    private handleError( $error)
     

    Handles an error.

    • throws TypeError
    private isValidExpiration( $expiration)
     

    Determines if an expiration is valid based on the rules defined by PSR6.

    • return bool
    © 2020 Bruce Wells
    Search Namespaces \ Classes
    ConfigurationNumbers (0-9.) only