public function createCompositeObject($values)
    {
        switch ($this->phpType) {
            case 'array':
                return $values;
            case 'object':
                return (object)$values;
        }

        return \Yii::createObject($this->phpType, [$values]);
    }
public function createCompositeObject($values)
    {
        switch ($this->phpType) {
            case 'array':
                return $values;
            case 'object':
                return (object)$values;
        }

        return \Yii::createObject($this->phpType, [$values]);
    }
public function createCompositeObject ( $ values ) { switch ( $ this -> phpType ) { case 'array' : return $ values ; case 'object' : return ( object ) $ values ; } return \ Yii :: createObject ( $ this -> phpType , [ $ values ] ) ; }
Creates an object for the composite type.
@param array $values to be passed to the class constructor
@return mixed
Creates an object for the composite type .