Pheasant\Relationship::__construct PHP 메소드

__construct() 공개 메소드

public __construct ( $class, $local, $foreign = null )
    public function __construct($class, $local, $foreign = null)
    {
        $this->class = $class;
        $this->local = $local;
        $this->foreign = empty($foreign) ? $local : $foreign;
    }

Usage Example

예제 #1
0
파일: BelongsTo.php 프로젝트: lox/pheasant
 /**
  * Constructor
  *
  */
 public function __construct($class, $local, $foreign = null, $allowEmpty = false)
 {
     parent::__construct($class, $local, $foreign);
     $this->_allowEmpty = $allowEmpty;
 }
All Usage Examples Of Pheasant\Relationship::__construct