public function preload($preload)
    {
        $validPreloadAttrs = ['auto', 'metadata', 'none'];
        
        if (\in_array($preload, $validPreloadAttrs, true)) {
            $this->attributes['preload'] = $preload;
        }

        return $this;
    }
public function preload($preload)
    {
        $validPreloadAttrs = ['auto', 'metadata', 'none'];
        
        if (\in_array($preload, $validPreloadAttrs, true)) {
            $this->attributes['preload'] = $preload;
        }

        return $this;
    }
public function preload ( $ preload ) { $ validPreloadAttrs = [ 'auto' , 'metadata' , 'none' ] ; if ( \ in_array ( $ preload , $ validPreloadAttrs , true ) ) { $ this -> attributes [ 'preload' ] = $ preload ; } return $ this ; }
Allows to set the preload behaviour

@param string $preload
@return $this
Allows to set the preload behaviour