public function loop($status = false)
    {
        if($status) {
            $this->attributes['loop'] = true;
        } else {
            unset($this->attributes['loop']);
        }

        return $this;
    }
public function loop($status = false)
    {
        if($status) {
            $this->attributes['loop'] = true;
        } else {
            unset($this->attributes['loop']);
        }

        return $this;
    }
public function loop ( $ status = false ) { if ( $ status ) { $ this -> attributes [ 'loop' ] = true ; } else { unset ( $ this -> attributes [ 'loop' ] ) ; } return $ this ; }
Allows to set the loop attribute

@param bool $status
@return $this
Allows to set the loop attribute