src/Helper/Placeholder.php
public function captureStart($type = null)
    {
        if ($this->captureStarted) {
            throw new RuntimeException('Capture is already started.');
        }
        if (null !== $type) {
            $this->setCaptureType($type);
        }
        $this->captureStarted = true;

        ob_start();

        return $this;
    }
public function captureStart($type = null)
    {
        if ($this->captureStarted) {
            throw new RuntimeException('Capture is already started.');
        }
        if (null !== $type) {
            $this->setCaptureType($type);
        }
        $this->captureStarted = true;

        ob_start();

        return $this;
    }
public function captureStart ( $ type = null ) { if ( $ this -> captureStarted ) { throw new RuntimeException ( 'Capture is already started.' ) ; } if ( null !== $ type ) { $ this -> setCaptureType ( $ type ) ; } $ this -> captureStarted = true ; ob_start ( ) ; return $ this ; }
Starts the capture.

@param null|string $type Optional; any of the capture type constants

@throws \RuntimeException If capture is already started

@return self
Starts the capture .