public function isOk()
    {
        if (null === $this->multiplicity) {
            return false;
        }
        $relName = $this->relationName;
        if (null === $relName || !is_string($relName) || empty($relName)) {
            return false;
        }
        $keyField = $this->keyField;
        if (null === $keyField || !is_string($keyField) || empty($keyField)) {
            return false;
        }
        $baseType = $this->baseType;
        if (null === $baseType || !is_string($baseType) || empty($baseType)) {
            return false;
        }
        $targType = $this->targType;
        if ($this instanceof AssociationStubMonomorphic && null === $targType) {
            return false;
        }
        if (null !== $targType && (!is_string($targType) || empty($targType))) {
            return false;
        }
        $foreignField = $this->foreignField;
        if (null !== $targType && (null === $foreignField || !is_string($foreignField) || empty($foreignField))) {
            return false;
        }
        return (null === $targType) === (null === $foreignField);
    }
public function isOk()
    {
        if (null === $this->multiplicity) {
            return false;
        }
        $relName = $this->relationName;
        if (null === $relName || !is_string($relName) || empty($relName)) {
            return false;
        }
        $keyField = $this->keyField;
        if (null === $keyField || !is_string($keyField) || empty($keyField)) {
            return false;
        }
        $baseType = $this->baseType;
        if (null === $baseType || !is_string($baseType) || empty($baseType)) {
            return false;
        }
        $targType = $this->targType;
        if ($this instanceof AssociationStubMonomorphic && null === $targType) {
            return false;
        }
        if (null !== $targType && (!is_string($targType) || empty($targType))) {
            return false;
        }
        $foreignField = $this->foreignField;
        if (null !== $targType && (null === $foreignField || !is_string($foreignField) || empty($foreignField))) {
            return false;
        }
        return (null === $targType) === (null === $foreignField);
    }
public function isOk ( ) { if ( null === $ this -> multiplicity ) { return false ; } $ relName = $ this -> relationName ; if ( null === $ relName || ! is_string ( $ relName ) || empty ( $ relName ) ) { return false ; } $ keyField = $ this -> keyField ; if ( null === $ keyField || ! is_string ( $ keyField ) || empty ( $ keyField ) ) { return false ; } $ baseType = $ this -> baseType ; if ( null === $ baseType || ! is_string ( $ baseType ) || empty ( $ baseType ) ) { return false ; } $ targType = $ this -> targType ; if ( $ this instanceof AssociationStubMonomorphic && null === $ targType ) { return false ; } if ( null !== $ targType && ( ! is_string ( $ targType ) || empty ( $ targType ) ) ) { return false ; } $ foreignField = $ this -> foreignField ; if ( null !== $ targType && ( null === $ foreignField || ! is_string ( $ foreignField ) || empty ( $ foreignField ) ) ) { return false ; } return ( null === $ targType ) === ( null === $ foreignField ) ; }
Is this AssociationStub sane?
Is this AssociationStub sane?