src/Phossa2/Di/Traits/ScopeTrait.php
protected function scopedData($data, /*# string */ $scope)/*# : array */
    {
        if (is_array($data) && isset($data['class'])) {
            $data['scope'] = $scope;
        } else {
            $data = ['class' => $data, 'scope' => $scope];
        }
        return $data;
    }
protected function scopedData($data, /*# string */ $scope)/*# : array */
    {
        if (is_array($data) && isset($data['class'])) {
            $data['scope'] = $scope;
        } else {
            $data = ['class' => $data, 'scope' => $scope];
        }
        return $data;
    }
protected function scopedData ( $ data , /*# string */ $ scope ) /*# : array */ { if ( is_array ( $ data ) && isset ( $ data [ 'class' ] ) ) { $ data [ 'scope' ] = $ scope ; } else { $ data = [ 'class' => $ data , 'scope' => $ scope ] ; } return $ data ; }
Append scope to data

@param  mixed $data
@param  string $scope
@return array
@access protected
Append scope to data