src/Types/Props.php
public function applyData ( $data = NULL ) {
        if (NULL != $data && is_array( $data )) {
            foreach ($data as $propName => $propValue) {
                $this->assignValue( $propName, $propValue );
            }
        } else {
            $this->buildVars();
        }
    }
public function applyData ( $data = NULL ) {
        if (NULL != $data && is_array( $data )) {
            foreach ($data as $propName => $propValue) {
                $this->assignValue( $propName, $propValue );
            }
        } else {
            $this->buildVars();
        }
    }
public function applyData ( $ data = NULL ) { if ( NULL != $ data && is_array ( $ data ) ) { foreach ( $ data as $ propName => $ propValue ) { $ this -> assignValue ( $ propName , $ propValue ) ; } } else { $ this -> buildVars ( ) ; } }
apply given data to properties
@param array $data
apply given data to properties