original_string: public function get($key) {
  		if (isset($this->rows[(int) $key])) {
  			return $this->rows[(int) $key];
  		} else {
  			/** @var ActiveRow|false $item */
  			$item = $this->buildSql()->get((int) $key);
  			if ($item) {
  				return $this->createEntity($item);
  			} else {
  				return NULL;
  			}
  		}
  	}
code: public function get($key) {
  		if (isset($this->rows[(int) $key])) {
  			return $this->rows[(int) $key];
  		} else {
  			/** @var ActiveRow|false $item */
  			$item = $this->buildSql()->get((int) $key);
  			if ($item) {
  				return $this->createEntity($item);
  			} else {
  				return NULL;
  			}
  		}
  	}
code_tokens: public function get ( $ key ) { if ( isset ( $ this -> rows [ ( int ) $ key ] ) ) { return $ this -> rows [ ( int ) $ key ] ; } else { /** @var ActiveRow|false $item */ $ item = $ this -> buildSql ( ) -> get ( ( int ) $ key ) ; if ( $ item ) { return $ this -> createEntity ( $ item ) ; } else { return NULL ; } } }
docstring: Find item by primary key
  
  @param int $key
  @return Entity|null
docstring_tokens: Find item by primary key