ActiveRecord\AbstractRelationship::set_inferred_class_name PHP Method

set_inferred_class_name() protected method

Will try to guess the appropriate class by singularizing and uppercasing $this->attribute_name.
See also: attribute_name
protected set_inferred_class_name ( ) : void
return void
    protected function set_inferred_class_name()
    {
        $singularize = $this instanceof HasMany ? true : false;
        $this->set_class_name(classify($this->attribute_name, $singularize));
    }