Esempio n. 1
0
 /**
  * @return string
  * The primary key of this model
  */
 public function primaryKeyValue() : string
 {
     return $this->file->getFilePath();
 }
Esempio n. 2
0
 /**
  * @return array
  * Get a map from column name to row values for
  * this instance
  */
 public function toRow() : array
 {
     return ['file_path' => $this->file->getFilePath(), 'modification_time' => $this->file->getModificationTime()];
 }