relationType() 공개 정적인 메소드

Checking that relation type is correct
public static relationType ( string $type ) : boolean
$type string
리턴 boolean relation type
예제 #1
0
 /**
  * Set relation type to field
  * @param string $relation Name of relation
  */
 protected function setRelationType($relation)
 {
     Validate::relationType($relation);
     $this->relationType = $relation;
 }
예제 #2
0
 /**
  * @covers Lazer\Classes\Helpers\Validate::relationType
  * @expectedException Lazer\Classes\LazerException
  */
 public function testRelationTypeNotExists()
 {
     $this->object->relationType('someRelation');
 }