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

remove() 공개 메소드

In that case, this method can be called to remove those values.
public remove ( string $unique )
$unique string
    public function remove($unique)
    {
        unset($this->unresolved[$unique], $this->resolved[$unique]);
    }

Usage Example

예제 #1
0
파일: Item.php 프로젝트: Nyholm/scrapbook
 /**
  * When this item is being killed, we should no longer keep its value around
  * in the repository. Free up some memory!
  */
 public function __destruct()
 {
     $this->repository->remove($this->hash);
 }