src/Charcoal/Admin/Widget/FormPropertyWidget.php
public function setDisplayType($type)
    {
        if (empty($type)) {
            $this->displayType = null;
            return $this;
        }

        if (!is_string($type)) {
            throw new InvalidArgumentException(
                'Property display type must be a string'
            );
        }

        $this->displayType = $type;

        return $this;
    }
public function setDisplayType($type)
    {
        if (empty($type)) {
            $this->displayType = null;
            return $this;
        }

        if (!is_string($type)) {
            throw new InvalidArgumentException(
                'Property display type must be a string'
            );
        }

        $this->displayType = $type;

        return $this;
    }
public function setDisplayType ( $ type ) { if ( empty ( $ type ) ) { $ this -> displayType = null ; return $ this ; } if ( ! is_string ( $ type ) ) { throw new InvalidArgumentException ( 'Property display type must be a string' ) ; } $ this -> displayType = $ type ; return $ this ; }
Set the property display type.

@param  string $type The property display type.
@throws InvalidArgumentException If the argument is not a string.
@return FormPropertyWidget Chainable
Set the property display type .