PHPExiftool\Reader::first PHP Method

first() public method

Return the first result. If no result available, throws an exception
public first ( ) : FileEntity
return FileEntity
    public function first()
    {
        if (count($this->all()) === 0) {
            throw new EmptyCollectionException('Collection is empty');
        }
        return $this->all()->first();
    }