public function metadataMask()
    {
        $attribs = array_keys($this->getAllAttributes());

        $visible = $this->getVisible();
        $hidden = $this->getHidden();
        if (0 < count($visible)) {
            $attribs = array_intersect($visible, $attribs);
        } elseif (0 < count($hidden)) {
            $attribs = array_diff($attribs, $hidden);
        }

        return $attribs;
    }
public function metadataMask()
    {
        $attribs = array_keys($this->getAllAttributes());

        $visible = $this->getVisible();
        $hidden = $this->getHidden();
        if (0 < count($visible)) {
            $attribs = array_intersect($visible, $attribs);
        } elseif (0 < count($hidden)) {
            $attribs = array_diff($attribs, $hidden);
        }

        return $attribs;
    }
public function metadataMask ( ) { $ attribs = array_keys ( $ this -> getAllAttributes ( ) ) ; $ visible = $ this -> getVisible ( ) ; $ hidden = $ this -> getHidden ( ) ; if ( 0 < count ( $ visible ) ) { $ attribs = array_intersect ( $ visible , $ attribs ) ; } elseif ( 0 < count ( $ hidden ) ) { $ attribs = array_diff ( $ attribs , $ hidden ) ; } return $ attribs ; }
Return the set of fields that are permitted to be in metadata
- following same visible-trumps-hidden guideline as Laravel.

@return array
Return the set of fields that are permitted to be in metadata - following same visible - trumps - hidden guideline as Laravel .