src/Charcoal/Admin/Widget/FormPropertyWidget.php
public function setProperty(PropertyInterface $property)
    {
        $this->property      = $property;
        $this->propertyType  = $property->type();
        $this->propertyIdent = $property->ident();

        $inputType = $property['input_type'];
        if ($inputType) {
            $this->inputType = $inputType;
        }

        $displayType = $property['display_type'];
        if ($displayType) {
            $this->displayType = $displayType;
        }

        return $this;
    }
public function setProperty(PropertyInterface $property)
    {
        $this->property      = $property;
        $this->propertyType  = $property->type();
        $this->propertyIdent = $property->ident();

        $inputType = $property['input_type'];
        if ($inputType) {
            $this->inputType = $inputType;
        }

        $displayType = $property['display_type'];
        if ($displayType) {
            $this->displayType = $displayType;
        }

        return $this;
    }
public function setProperty ( PropertyInterface $ property ) { $ this -> property = $ property ; $ this -> propertyType = $ property -> type ( ) ; $ this -> propertyIdent = $ property -> ident ( ) ; $ inputType = $ property [ 'input_type' ] ; if ( $ inputType ) { $ this -> inputType = $ inputType ; } $ displayType = $ property [ 'display_type' ] ; if ( $ displayType ) { $ this -> displayType = $ displayType ; } return $ this ; }
Set the widget's model property.

@param  PropertyInterface $property The property.
@return FormPropertyWidget Chainable
Set the widget s model property .