src/JsonQueriable.php
public function import($file = null)
    {
        if (!is_null($file)) {
            if (is_string($file) && file_exists($file)) {
                $this->_map = $this->getDataFromFile($file);
                $this->_baseContents = $this->_map;
                return true;
            }
        }

        throw new FileNotFoundException();
    }
public function import($file = null)
    {
        if (!is_null($file)) {
            if (is_string($file) && file_exists($file)) {
                $this->_map = $this->getDataFromFile($file);
                $this->_baseContents = $this->_map;
                return true;
            }
        }

        throw new FileNotFoundException();
    }
public function import ( $ file = null ) { if ( ! is_null ( $ file ) ) { if ( is_string ( $ file ) && file_exists ( $ file ) ) { $ this -> _map = $ this -> getDataFromFile ( $ file ) ; $ this -> _baseContents = $ this -> _map ; return true ; } } throw new FileNotFoundException ( ) ; }
import data from file

@param string|null $file
@return bool
@throws FileNotFoundException
@throws InvalidJsonException
import data from file