public function isPrimary($role)
    {
        if (!$this->handlePrimary($role)) {
            return false;
        }
        $primaryField = $this->getPrimaryField($role);

        return !empty($this->owner->{$primaryField});
    }
public function isPrimary($role)
    {
        if (!$this->handlePrimary($role)) {
            return false;
        }
        $primaryField = $this->getPrimaryField($role);

        return !empty($this->owner->{$primaryField});
    }
public function isPrimary ( $ role ) { if ( ! $ this -> handlePrimary ( $ role ) ) { return false ; } $ primaryField = $ this -> getPrimaryField ( $ role ) ; return ! empty ( $ this -> owner -> { $ primaryField } ) ; }
Get is primary.

@param [[@doctodo param_type:role]] $role [[@doctodo param_description:role]]

@return [[@doctodo return_type:isPrimary]] [[@doctodo return_description:isPrimary]]
Get is primary .