src/Storage/File/ProcessableFile.php
protected function setDerivedFileProperties()
    {
        if ( ! $this->file || ! file_exists($this->file->getRealPath())) {
            throw new RuntimeException("Local file not found at {$this->file->getPath()}");
        }

        $this->size = $this->file->getSize();

        if (null === $this->name) {
            $this->name = $this->file->getBasename();
        }
    }
protected function setDerivedFileProperties()
    {
        if ( ! $this->file || ! file_exists($this->file->getRealPath())) {
            throw new RuntimeException("Local file not found at {$this->file->getPath()}");
        }

        $this->size = $this->file->getSize();

        if (null === $this->name) {
            $this->name = $this->file->getBasename();
        }
    }
protected function setDerivedFileProperties ( ) { if ( ! $ this -> file || ! file_exists ( $ this -> file -> getRealPath ( ) ) ) { throw new RuntimeException ( "Local file not found at {$this->file->getPath()}" ) ; } $ this -> size = $ this -> file -> getSize ( ) ; if ( null === $ this -> name ) { $ this -> name = $ this -> file -> getBasename ( ) ; } }
Sets properties based on the given data.
Sets properties based on the given data .