PhpParser\Builder\Method::makeProtected PHP Method

makeProtected() public method

Makes the method protected.
public makeProtected ( )
    public function makeProtected() {
        $this->setModifier(Stmt\Class_::MODIFIER_PROTECTED);

        return $this;
    }