private function generateDocumentMethods(array $metadata)
    {
        $lines = [];

        foreach ($metadata['properties'] as $property) {
            if (isset($property['visibility']) && $property['visibility'] === 'public') {
                continue;
            }
            $lines[] = $this->generateDocumentMethod($property, $this->setMethodTemplate) . "\n";
            if (isset($property['property_type']) && $property['property_type'] === 'boolean') {
                $lines[] = $this->generateDocumentMethod($property, $this->isMethodTemplate) . "\n";
            }

            $lines[] = $this->generateDocumentMethod($property, $this->getMethodTemplate) . "\n";
        }

        return implode("\n", $lines);
    }
private function generateDocumentMethods(array $metadata)
    {
        $lines = [];

        foreach ($metadata['properties'] as $property) {
            if (isset($property['visibility']) && $property['visibility'] === 'public') {
                continue;
            }
            $lines[] = $this->generateDocumentMethod($property, $this->setMethodTemplate) . "\n";
            if (isset($property['property_type']) && $property['property_type'] === 'boolean') {
                $lines[] = $this->generateDocumentMethod($property, $this->isMethodTemplate) . "\n";
            }

            $lines[] = $this->generateDocumentMethod($property, $this->getMethodTemplate) . "\n";
        }

        return implode("\n", $lines);
    }
private function generateDocumentMethods ( array $ metadata ) { $ lines = [ ] ; foreach ( $ metadata [ 'properties' ] as $ property ) { if ( isset ( $ property [ 'visibility' ] ) && $ property [ 'visibility' ] === 'public' ) { continue ; } $ lines [ ] = $ this -> generateDocumentMethod ( $ property , $ this -> setMethodTemplate ) . "\n" ; if ( isset ( $ property [ 'property_type' ] ) && $ property [ 'property_type' ] === 'boolean' ) { $ lines [ ] = $ this -> generateDocumentMethod ( $ property , $ this -> isMethodTemplate ) . "\n" ; } $ lines [ ] = $ this -> generateDocumentMethod ( $ property , $ this -> getMethodTemplate ) . "\n" ; } return implode ( "\n" , $ lines ) ; }
Generates document methods

@param array $metadata

@return string
Generates document methods