src/Common/HasAttributes.php
public function hasGetMutator($key)
    {
        $TitleCase = ucwords(str_replace(['-', '_'], ' ', $key));
        $StudlyCase = str_replace(' ', '', $TitleCase);

        return method_exists($this, 'get'.$StudlyCase.'Attribute');
    }
public function hasGetMutator($key)
    {
        $TitleCase = ucwords(str_replace(['-', '_'], ' ', $key));
        $StudlyCase = str_replace(' ', '', $TitleCase);

        return method_exists($this, 'get'.$StudlyCase.'Attribute');
    }
public function hasGetMutator ( $ key ) { $ TitleCase = ucwords ( str_replace ( [ '-' , '_' ] , ' ' , $ key ) ) ; $ StudlyCase = str_replace ( ' ' , '' , $ TitleCase ) ; return method_exists ( $ this , 'get' . $ StudlyCase . 'Attribute' ) ; }
Determine if a get mutator exists for an attribute.

@param  string  $key
@return bool
Determine if a get mutator exists for an attribute .