src/Annotation/Generate.php
public function setDefaultVisibility(string $visibility): void
    {
        if (null === $this->get) {
            $this->get = $visibility;
        }

        if (null === $this->set) {
            $this->set = $visibility;
        }

        if (null === $this->add) {
            $this->add = $visibility;
        }

        if (null !== $this->remove) {
            return;
        }

        $this->remove = $visibility;
    }
public function setDefaultVisibility(string $visibility): void
    {
        if (null === $this->get) {
            $this->get = $visibility;
        }

        if (null === $this->set) {
            $this->set = $visibility;
        }

        if (null === $this->add) {
            $this->add = $visibility;
        }

        if (null !== $this->remove) {
            return;
        }

        $this->remove = $visibility;
    }
public function setDefaultVisibility ( string $ visibility ) : void { if ( null === $ this -> get ) { $ this -> get = $ visibility ; } if ( null === $ this -> set ) { $ this -> set = $ visibility ; } if ( null === $ this -> add ) { $ this -> add = $ visibility ; } if ( null !== $ this -> remove ) { return ; } $ this -> remove = $ visibility ; }
Sets the given visibility to all accessors if they are not explicitly defined.

@param string $visibility
Sets the given visibility to all accessors if they are not explicitly defined .