public function addBlock(Block $block)
	{
		if ($this->lock('block')) {
			$this->matchDiscriminator($block);
			if ($this->addUnique($this->blocks, $block)) {
				$block->setPlaceHolder($this);
			}
			$this->unlock('block');
		}
	}
public function addBlock(Block $block)
	{
		if ($this->lock('block')) {
			$this->matchDiscriminator($block);
			if ($this->addUnique($this->blocks, $block)) {
				$block->setPlaceHolder($this);
			}
			$this->unlock('block');
		}
	}
public function addBlock ( Block $ block ) { if ( $ this -> lock ( 'block' ) ) { $ this -> matchDiscriminator ( $ block ) ; if ( $ this -> addUnique ( $ this -> blocks , $ block ) ) { $ block -> setPlaceHolder ( $ this ) ; } $ this -> unlock ( 'block' ) ; } }
Adds a block
@param Block $block
Adds a block