Dumplie\Metadata\Schema\Type::isEqual PHP Method

isEqual() public method

public isEqual ( Type $type ) : boolean
$type Type
return boolean
    public function isEqual(Type $type) : bool
    {
        return $this->type == $type->type;
    }

Usage Example

Example #1
0
 /**
  * @param Type $type
  *
  * @return bool
  */
 public function maps(Type $type) : bool
 {
     return $this->type->isEqual($type);
 }