src/Salamek/Tempnam/Tempnam.php
public function save($key, $data, \DateTimeInterface $updatedAt = null)
    {
        $keyGen = $this->generateKey($key);
        $path = $this->putFile($keyGen, $data);
        $this->cache->save($keyGen, $updatedAt);
        return $path;
    }
public function save($key, $data, \DateTimeInterface $updatedAt = null)
    {
        $keyGen = $this->generateKey($key);
        $path = $this->putFile($keyGen, $data);
        $this->cache->save($keyGen, $updatedAt);
        return $path;
    }
public function save ( $ key , $ data , \ DateTimeInterface $ updatedAt = null ) { $ keyGen = $ this -> generateKey ( $ key ) ; $ path = $ this -> putFile ( $ keyGen , $ data ) ; $ this -> cache -> save ( $ keyGen , $ updatedAt ) ; return $ path ; }
Saves tempnam file and returns its path
@param $key string tempnam key
@param $data string content of file
@param \DateTimeInterface|null $updatedAt When data was last updated
@return string path to tempnam
Saves tempnam file and returns its path