get() 공개 메소드

public get ( string $unique ) : mixed | null
$unique string
리턴 mixed | null Value, of null if non-existent
예제 #1
0
파일: Item.php 프로젝트: Nyholm/scrapbook
 /**
  * {@inheritdoc}
  */
 public function get()
 {
     // value was already set on this object, return that one!
     if ($this->value !== null) {
         return $this->value;
     }
     // sanity check
     if (!$this->isHit()) {
         return;
     }
     return $this->repository->get($this->hash);
 }