Jose\Object\Storable::getFileContent PHP Method

getFileContent() protected method

protected getFileContent ( ) : array | null
return array | null
    protected function getFileContent()
    {
        if (file_exists($this->getFilename())) {
            $content = file_get_contents($this->getFilename());
            if (false === $content) {
                return;
            }
            $content = json_decode($content, true);
            if (!is_array($content)) {
                return;
            }
            return $content;
        }
    }