Pheasant\Relationship::__construct PHP Method

__construct() public method

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

Example #1
0
 /**
  * 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