private function buildFile($row)
    {
        $file = new File(
            new FileId($row['id']),
            new FileName($row['name'] . '.' . $row['extension']),
            new FileMimeType($row['mime_type'])
        );

        $createdOn = new \DateTimeImmutable($row['created_on']);
        $updatedOn = new \DateTimeImmutable($row['updated_on']);

        $file = $this->set($file, 'createdOn', $createdOn);
        $file = $this->set($file, 'updatedOn', $updatedOn);

        return $file;
    }
private function buildFile($row)
    {
        $file = new File(
            new FileId($row['id']),
            new FileName($row['name'] . '.' . $row['extension']),
            new FileMimeType($row['mime_type'])
        );

        $createdOn = new \DateTimeImmutable($row['created_on']);
        $updatedOn = new \DateTimeImmutable($row['updated_on']);

        $file = $this->set($file, 'createdOn', $createdOn);
        $file = $this->set($file, 'updatedOn', $updatedOn);

        return $file;
    }
private function buildFile ( $ row ) { $ file = new File ( new FileId ( $ row [ 'id' ] ) , new FileName ( $ row [ 'name' ] . '.' . $ row [ 'extension' ] ) , new FileMimeType ( $ row [ 'mime_type' ] ) ) ; $ createdOn = new \ DateTimeImmutable ( $ row [ 'created_on' ] ) ; $ updatedOn = new \ DateTimeImmutable ( $ row [ 'updated_on' ] ) ; $ file = $ this -> set ( $ file , 'createdOn' , $ createdOn ) ; $ file = $ this -> set ( $ file , 'updatedOn' , $ updatedOn ) ; return $ file ; }
Builds the file with the given sql row attributes.

@param array $row Array which contains attributes of file

@return File
Builds the file with the given sql row attributes .