protected function initializeStatusCodes()
    {
        $annotationReflection = new \ReflectionClass('Nelmio\ApiDocBundle\Annotation\ApiDoc');
        $statusCodesReflection = $annotationReflection->getProperty('statusCodes');
        $statusCodesReflection->setAccessible(true);
        $statusCodesReflection->setValue($this, []);

        return $this;
    }
protected function initializeStatusCodes()
    {
        $annotationReflection = new \ReflectionClass('Nelmio\ApiDocBundle\Annotation\ApiDoc');
        $statusCodesReflection = $annotationReflection->getProperty('statusCodes');
        $statusCodesReflection->setAccessible(true);
        $statusCodesReflection->setValue($this, []);

        return $this;
    }
protected function initializeStatusCodes ( ) { $ annotationReflection = new \ ReflectionClass ( 'Nelmio\ApiDocBundle\Annotation\ApiDoc' ) ; $ statusCodesReflection = $ annotationReflection -> getProperty ( 'statusCodes' ) ; $ statusCodesReflection -> setAccessible ( true ) ; $ statusCodesReflection -> setValue ( $ this , [ ] ) ; return $ this ; }
Purges the statusCodes array to populate with the new way.

This method is required because the $statusCodes
is a private field, and the reflection is necessary.

@return self
Purges the statusCodes array to populate with the new way .