protected function mapProperty(array $template = [], $props = [])
    {
        // No values set
        if (is_array($props) === false) {
            return null;
        }

        foreach($template as $key => $value) {
            if ($key[0] !== '@') {
                $template[$key] = $this->getArrValue($props, $key, '');
            }
        }

        return array_filter($template);
    }
protected function mapProperty(array $template = [], $props = [])
    {
        // No values set
        if (is_array($props) === false) {
            return null;
        }

        foreach($template as $key => $value) {
            if ($key[0] !== '@') {
                $template[$key] = $this->getArrValue($props, $key, '');
            }
        }

        return array_filter($template);
    }
protected function mapProperty ( array $ template = [ ] , $ props = [ ] ) { // No values set if ( is_array ( $ props ) === false ) { return null ; } foreach ( $ template as $ key => $ value ) { if ( $ key [ 0 ] !== '@' ) { $ template [ $ key ] = $ this -> getArrValue ( $ props , $ key , '' ) ; } } return array_filter ( $ template ) ; }
Get property value from attributes.

@param  array $template
@param  array $props
@return mixed
Get property value from attributes .