コード例 #1
0
ファイル: PartialTest.php プロジェクト: navtis/xerxes-pazpar2
 public function testSetObjectKeyImplementsFluentInterface()
 {
     $test = $this->helper->setObjectKey('foo');
     $this->assertSame($this->helper, $test);
 }
コード例 #2
0
ファイル: PartialLoop.php プロジェクト: youprofit/casebox
 /**
  * Set object key in this loop and any child loop
  *
  * {@inheritDoc}
  *
  * @param string|null $key
  *
  * @return self
  */
 public function setObjectKey($key)
 {
     if (null === $key) {
         unset($this->objectKeyStack[$this->nestingLevel]);
     } else {
         $this->objectKeyStack[$this->nestingLevel] = (string) $key;
     }
     return parent::setObjectKey($key);
 }