Returns table name from Model class properties.

@param        $class
@param string $property
@param null   $default

@return null
559876
public function getTableNameFromClass($class, $property = 'tableName', $default = null)
    {
        if (!class_exists($class) || !property_exists($class, $property)) {
            return $default;
        }

        $properties = get_class_vars($class);

        return $properties[$property];
    }
166003
public function get($name = null, $default = null)
     {
         $description = $this->getEntityDescription();

        //get the property
        $property = $description->getProperty($name);

         if (!$property) {
             return parent::get($name, $default);
         }

        //get the property name
        $name = $property->getName();

         $value = $this->_data->offsetGet($name);

         if ($property->isRelationship() && $property->isOneToMany() && is_null($value)) {
             //since it's an external relationship
            //lets instantitate a dummy relationship
            //this should happen for the one-to-one relationships
            if ($property->isOneToOne()) {
                return;
            }

             $value = $this->_data[$name] = $property->getSet($this);

             return $value;
         }

         return is_null($value) ? $default : $value;
     }
116803
public String get(String propertyName, String defaultValue)
    {
        return properties.getProperty(propertyName, defaultValue);
    }
243966
public function getOptionalProperty($property, $default = null)
    {
        \Assert\that($property)->string()->notEmpty();

        if (property_exists($this->description, $property) === false) {
            return $default;
        }

        return $this->getMandatoryProperty($property);
    }
366316
public function get($property, $type = null, $default = null)
    {
        if (!isset($this->param[$property])) {
            return $default;
        }

        if (isset($type)) {
            $method = TypeCast::METHODPREFIX . $type;

            return TypeCast::$method($this->param[$property]);
        }

        return $this->param[$property];
    }
1347732
public function get($property, $default_value = null)
    {
        if (property_exists($this, $property)) {
            return $this->$property;
        }

        return $default_value;
    }
769530
public static function createDefault(string $class): Rule
    {
        $rule = new Rule($class);

        $reflection = new \ReflectionClass($class);
        $properties = $reflection->getProperties();

        foreach ($properties as $property) {
            /** @var \ReflectionProperty $property */
            $rule->assign($property->getName(), $property->getName());
        }

        return $rule;
    }
786246
public function staticProperty($class, $property, $args = array()) {
		if(!class_exists($class))
			return null;
		if(!property_exists($class, $property))
			return null;
		
		$vars = get_class_vars($class);
		return $vars[$property];
	}
1032586
public static function temporal_property($key, $default = null)
	{
		$class = get_called_class();

		// If already determined
		if (!array_key_exists($class, static::$_temporal_cached))
		{
			static::temporal_properties();
		}

		return \Arr::get(static::$_temporal_cached[$class], $key, $default);
	}
75667
public function getColumnProperty($column, $property, $default = null)
    {
        if (!isset($this->columns[$column])) {
            return $default;
        }
        if (!isset($this->columns[$column][$property])) {
            return $default;
        }
        return $this->columns[$column][$property];
    }
142537
public static function property($key, $default = null)
	{
		$class = get_called_class();

		// If already determined
		if ( ! array_key_exists($class, static::$_properties_cached))
		{
			static::properties();
		}

		return \Arr::get(static::$_properties_cached[$class], $key, $default);
	}
168541
public String getProperty(String key, String defaultValue) {
        String val = properties.get(key);

        if (val == null) {
            val = defaultValue;
        }

        return val;
    }
1364173
public function sequenceName($property)
    {
        $sequence = $property->type->options()->sequence;

        return $sequence ?: sprintf("%s_%s_seq", $this->_tableName, $property->name);
    }
98588
public function getExtensionProperty($property, $default = null)
	{
		$extension = new Registry((array) $this->getExtension());

		return $extension->get($property, $default);
	}
151953
public static function fetchStaticProperty($class, $property)
    {
        $refl = new \ReflectionClass($class);
        $prop = $refl->getProperty($property);
        $prop->setAccessible(true);

        return $prop->getValue();
    }
1080374
public function GetTableName($objectclass, $propertyname)
	{
		$fm = $this->GetFieldMap($objectclass, $propertyname);
		return $fm->TableName;
	}
927965
protected function getTableNameForClass(string $modelClass): string
    {
        assert(
            $this->getModelSchemas()->hasClass($modelClass),
            "Class `$modelClass` is not found in model Schemas."
        );

        $tableName = $this->getModelSchemas()->getTable($modelClass);

        return $tableName;
    }