MatthiasMullie\Scrapbook\Psr6\Repository::exists PHP 메소드

exists() 공개 메소드

public exists ( string $unique ) : boolean
$unique string
리턴 boolean
    public function exists($unique)
    {
        if (array_key_exists($unique, $this->unresolved)) {
            $this->resolve();
        }
        return array_key_exists($unique, $this->resolved);
    }

Usage Example

예제 #1
0
 /**
  * {@inheritdoc}
  */
 public function isHit()
 {
     if ($this->isHit !== null) {
         return $this->isHit;
     }
     return $this->repository->exists($this->hash);
 }
All Usage Examples Of MatthiasMullie\Scrapbook\Psr6\Repository::exists