original_string: public function addBrick($postValues)
      {
          $brickObject = BrickFactory::createBrickFromPostValues($postValues);
  
          $bricks = $this->repository->bricks;
          $bricks[] = $brickObject;
          $this->repository->bricks = $bricks;
  
          $this->save();
      }
code: public function addBrick($postValues)
      {
          $brickObject = BrickFactory::createBrickFromPostValues($postValues);
  
          $bricks = $this->repository->bricks;
          $bricks[] = $brickObject;
          $this->repository->bricks = $bricks;
  
          $this->save();
      }
code_tokens: public function addBrick ( $ postValues ) { $ brickObject = BrickFactory :: createBrickFromPostValues ( $ postValues ) ; $ bricks = $ this -> repository -> bricks ; $ bricks [ ] = $ brickObject ; $ this -> repository -> bricks = $ bricks ; $ this -> save ( ) ; }
docstring: Add a brick
  
  @param $postValues
  
  @throws \Exception
docstring_tokens: Add a brick