Example #1
0
 /**
  * Returns the generated methods visibility by looking for the
  * attribute value in the column, parent table or parent database.
  * Finally, it defaults to the default visibility (public).
  *
  * @param  string $attribute       Local column attribute
  * @param  string $parentAttribute Parent (table or database) attribute
  * @return string
  */
 private function getMethodVisibility($attribute, $parentAttribute)
 {
     $database = $this->getDatabase();
     $visibility = $this->getAttribute($attribute, $this->parentTable->getAttribute($parentAttribute, $database->getAttribute($parentAttribute, self::DEFAULT_VISIBILITY)));
     return $visibility;
 }