Library/Variable.php
public function setClassTypes($classTypes)
    {
        if ($classTypes) {
            if (\is_string($classTypes)) {
                if (!\in_array($classTypes, $this->classTypes)) {
                    $this->classTypes[] = $classTypes;
                }
            } else {
                foreach ($classTypes as $classType) {
                    if (!\in_array($classType, $this->classTypes)) {
                        $this->classTypes[] = $classType;
                    }
                }
            }
        }
    }
public function setClassTypes($classTypes)
    {
        if ($classTypes) {
            if (\is_string($classTypes)) {
                if (!\in_array($classTypes, $this->classTypes)) {
                    $this->classTypes[] = $classTypes;
                }
            } else {
                foreach ($classTypes as $classType) {
                    if (!\in_array($classType, $this->classTypes)) {
                        $this->classTypes[] = $classType;
                    }
                }
            }
        }
    }
public function setClassTypes ( $ classTypes ) { if ( $ classTypes ) { if ( \ is_string ( $ classTypes ) ) { if ( ! \ in_array ( $ classTypes , $ this -> classTypes ) ) { $ this -> classTypes [ ] = $ classTypes ; } } else { foreach ( $ classTypes as $ classType ) { if ( ! \ in_array ( $ classType , $ this -> classTypes ) ) { $ this -> classTypes [ ] = $ classType ; } } } } }
Sets the PHP class related to variable.

@param array|string $classTypes
Sets the PHP class related to variable .